0005. Longest Palindromic Substring

Find the longest palindromic substring in a string — 2 approaches

Expand Around Center
Dynamic Programming
Press "Play" or "Step" to start the animation.
Algorithm Complexity
Brute Force
O(n³)
O(n³) / O(1)
Dynamic Programming
O(n²)
O(n²) / O(n²)
Expand Around Center
O(n²)
O(n²) / O(1)