Palindromic Substrings — 1-D DP

Count every mirror-image snippet hidden in a short lowercase word, tallying repeats at different positions separately.

1-D DP · Medium

More in 1-D DP

All algorithm problems