
Given a string s, return the longest contiguous substring of s that is a palindrome.
s
.
1 <= len(s) <= 2000
(or similar typical interview constraints)
s
contains ASCII letters/digits.
s = "babad"
→
"bab"
(or
"aba"
)
s = "cbbd"
→
"bb"