Leetcode 力扣動態規劃筆記 部分中等題算法總結CPP

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. 給定字符串s,找出它的最長迴文字符串。 DP解法思路:若是有s的最長迴文字符串t,那麼把t的頭尾去掉依
相關文章
相關標籤/搜索