题目
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.
Example1:
Input: "babad"
Output: "bab"
Note: "aba is also a valid answer. "
Example2:
Input: "cbbd"
Output: "bb"
2024-04-05 10:35:13
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.
Example1:
Input: "babad"
Output: "bab"
Note: "aba is also a valid answer. "
Example2:
Input: "cbbd"
Output: "bb"