loading

Longest Palindromic Substring — Step-by-Step Visualization

mediumLeetCode #5StringDynamic ProgrammingTwo Pointers

Given a string s, return the longest palindromic substring. Expand around each center — both odd-length (single char center) and even-length (between two chars).

Related Problems