Dsa
Strings
Easy
Palindromic Substrings Count
Count all unique palindromic substrings in a given string and return their count.
Input Format:
- A single line string s (1 <= |s| <= 1000).
Output Format:
- Print the count of unique palindromic substrings.
Example:
Input:
ababa
Output:
5
Key concepts
stringspalindromes
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now