LeetCode 647: Palindromic Substrings — Step-by-Step Visual Trace
Medium — String | Two Pointers | Expand Around Centers | Palindrome
The Problem
Count the total number of palindromic substrings in a given string, where a palindromic substring reads the same forwards and backwards.
Approach
Use the expand around ce...
blog.tracelit.dev1 min read