![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
回文
文章平均质量分 65
m0_62024778
这个作者很懒,什么都没留下…
展开
-
5. 最长回文子串 Longest Palindromic Substring - 中等
最长回文子串 Longest Palindromic Substring题目描述解题方法方法一:中心扩展法方法二:动态规划法题目描述Given a string s, return the longest palindromic substring in s.Example 1:Input: s = “babad”Output: “bab”Note: “aba” is also a valid answer.Example 2:Input: s = “cbbd”Output: “bb原创 2021-11-16 22:29:32 · 75 阅读 · 0 评论 -
409. 最长回文串(Longest Palindrome)- 简单
最长回文串 Longest Palindrome题目描述解题方法题目描述Given a string s which consists of lowercase or uppercase letters, return the length of the longest palindrome that can be built with those letters.Letters are case sensitive, for example, "Aa" is not considered a pal原创 2021-11-13 01:24:32 · 372 阅读 · 0 评论