Practice
/

Longest Palindromic Substring

Longest Palindromic Substring

Given a string, return the longest substring that reads the same forwards and backwards.

Premium Content

Create a free account, then unlock this problem and the entire premium catalog with a one-time CodeSnatch Premium purchase.

Already have an account with premium access? Sign in to continue.