Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 257 Bytes

File metadata and controls

20 lines (13 loc) · 257 Bytes

题干

Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.

Example:

Input: "babad"

Output: "bab"

Note: "aba" is also a valid answer.

Example:

Input: "cbbd"

Output: "bb"