摘要: class Solution { public: string longestPalindrome(string s) { string res; int n=s.size(); for(int i=0;i<n;i++) { //长度是奇数 int l=i-1,r=i+1; while(l>=0&& 阅读全文
posted @ 2023-05-16 20:25 穿过雾的阴霾 阅读(9) 评论(0) 推荐(0)