Problem 647 · Medium

Palindromic Substrings

Expand from each center (odd/even) and count all palindromes; O(n²) time.

Open the interactive visualisation