ByteByteGo logo
menuProblems List

Longest Palindrome in a String

Medium

Return the longest palindromic substring within a given string.

Example:

Input: s = 'abccbaba'
Output: 'abccba'

You can practice coding exercises online by logging into bytebytego.com on your laptop.