Problems / 1D Dynamic Programming / Palindromic Substrings
#104 Medium Time O(n²) Space O(1) Animated

Palindromic Substrings

Count the number of palindromic substrings.

LeetCode ↗
Approach: Expand Around Center
Click play to start
Step 0 / 0
Press play to start the visualization.

Steps