Strings and Expansion • Intermediate • 22 min
Longest Palindromic Substring
How to notice that every palindrome has a center and use that to avoid a heavier [dynamic programming](/glossary/dynamic-programming) solution than necessary.
Practice problems with walkthroughs, hints, and solutions.
Filter by type or level