Problem 5 · Medium

Longest Palindromic Substring

Find the longest palindromic substring. Bottom-up DP with O(n²) time & space.

Open the interactive visualisation