647. Number of palindromic substring
Input:
"abc"
Output:
3
Explanation:
Three palindromic strings: "a", "b", "c".Input:
"aaa"
Output:
6
Explanation:
Six palindromic strings: "a", "a", "a", "aa", "aa", "aaa".Last updated
Was this helpful?