随笔分类 -  字符串

5. 最长回文子串
摘要:5. 最长回文子串5. 最长回文子串 1. 题目描述 来源: https://leetcode-cn.com/problems/longest-palindromic-substring/ 2. 思路 2.1 中心拓展法 和**“647. 回文子串”中的中心拓展**完全类似,详细请访问https://www.cnbl 阅读全文
posted @ 2021-10-24 01:16 滔特特
647. 回文子串
摘要:647. 回文子串647. 回文子串 1. 题目描述 来源: https://leetcode-cn.com/problems/palindromic-substrings/ 2. 思路 2.1 中心拓展 对于s中任何一个字符s[i],均有可能是一个回文子串的中心位置,因此可以以s[i]为着手点,同时向两边发散,若左 阅读全文
posted @ 2021-10-23 16:53 滔特特