Count palindromic substrings

0
Remix

Count the substrings of a string that are palindromes, counting each position separately. Expanding around every centre gives O(n^2) time and O(1) space.

MetaCodingLast asked May 2026
No answer yet. Write the first one; the best answer gets endorsed.