Given a string s
, return the longest palindromic substring in s
.
Input: s = "babad"
Output: "bab"
Explanation: "aba" is also a valid answer.
Input: s = "cbbd"
Output: "bb"
- 1 <= s.length <= 1000
s
consist of only digits and English letters.
Given a string s
, return the longest palindromic substring in s
.
Input: s = "babad"
Output: "bab"
Explanation: "aba" is also a valid answer.
Input: s = "cbbd"
Output: "bb"
s
consist of only digits and English letters.