题目
https://leetcode.cn/leetbook/read/array-and-string/conm7/
给你一个字符串 s
,找到 s
中最长的 回文 子串。
实现
思路:遍历每个字符作为回文中心,向左右扩展寻找最长回文。 注意:奇偶情况
复杂度分析
- 时间复杂度:
- 空间复杂度:
var func = function(){}
https://leetcode.cn/leetbook/read/array-and-string/conm7/
给你一个字符串 s
,找到 s
中最长的 回文 子串。
思路:遍历每个字符作为回文中心,向左右扩展寻找最长回文。 注意:奇偶情况
复杂度分析
- 时间复杂度:
- 空间复杂度:
var func = function(){}