特牛网址导航

[LeetCode C++] 5. 最长回文子串_最长回文子串c++语言_超级大洋葱806的博客-CSDN博客

网友收藏
来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/longest-palindromic-substring/题目:解法:中心扩散法class Solution {public: pair<int, int> expandAroundCenter(const string& s, int left, int right){ while(left>=0 && right<s._最长回文子串c++语言