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.
Input: "cbbd"
Output: "bb"
暂时还没写出来
Posted 栖息之鹰
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了LeeCode(5. Longest Palindromic Substring)相关的知识,希望对你有一定的参考价值。
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.
Input: "cbbd"
Output: "bb"
暂时还没写出来
以上是关于LeeCode(5. Longest Palindromic Substring)的主要内容,如果未能解决你的问题,请参考以下文章
leecode 978. Longest Turbulent Subarray(最长连续波动序列,DP or 滚动数组)
Leecode 1218. 最长定差子序列——Leecode每日一题系列