About This Pattern
Master the Expand Around Center pattern by practicing these problems organized by difficulty.Focus on the Key Signals - these are the indicators that tell you when to use this pattern.
Medium (2)
Longest Palindromic Substring
Find the longest palindromic substring.
Key Signals:
Check odd and even lengthExpand from centerTrack longest
Palindromic Substrings
Count how many palindromic substrings exist in a string.
Key Signals:
Similar to longest palindromeCount allExpand from each center