babad
mediumBlind 75

Longest Palindromic Substring

This problem is a state-machine in disguise, and DP is how you keep it under control. Interviewers love it because it reveals your state-and-transition thinking and your edge-case discipline. Don't rush the code—spend your time nailing the state definition first.

StringTwo PointersDynamic Programming
👩‍🏫
👨‍💼

Meet Allison & Tim

Your AI coaches

Practice coding interviews out loud with real-time voice coaching. Your code actually runs.

Free · No sign up · Early access
1Find Longest Palindromic Substringmedium
Based onLeetCode

Get this problem sent to your inbox