Marks :100
: 7 | : 0
A palindromic is a string that reads the same from the left and from the right. For example, mom and tacocat are palindromes, as are any single characters string .Given a string determines the number if substrings that are palindromes.
The first line of input contains a string s .($$$1 \le S \le 5000$$$)
For each test case print the number of palindromes substring
tacocat
10
Example:
The string is s=tacocat. Palindromic substrings are [t,a,c,o,c,a,t,coc,acoca,tacocat].
There are total of 10 palindromic substrings.
You need to login to view your submissions.
You need to login to view all submissions.
Result : Executed
Feel something is wrong with the test cases?
Result : Accepted
Test Cases :
But to Run or Submit the Problem, you need to Log In.
Continue to Log InYour challenge has been submitted successfully.
You will get a response soon via WhatsApp or Email.
Do let us know your issue.