求最长回文串 解法一:中心扩散法 过于***,就是枚举中心点向两边拓展长度直到不相等。(时间复杂度 ,空间复杂度 ) Code #include <bits/stdc++.h> using namespace std; string s; int check(int pos, int type) { int now, x, y; if (type) now = 0, x = pos, y = pos + 1; else now = 1, x = pos - 1, y = pos + 1; while (1) { if (x >= 0 ...