Leetcode#5. Longest Palindromic Substring
Problem
Given a string s
, return the longest
palindromic
substring
in
1 | s |
.
Example 1:
1 | Input: s = "babad" |
Example 2:
1 | Input: s = "cbbd" |
Constraints:
1 <= s.length <= 1000
s
consist of only digits and English letters.
Solve
1 | class Solution: |
本部落格所有文章除特別聲明外,均採用 CC BY-NC-SA 4.0 許可協議。轉載請註明來自 Imisky!
評論