最长回文/对称子串 manacher algorithm以下以字符串"abcdcbaabdcec"为例 秩 0 1 2 3 4 5 6 7 8 9---------------------------------- 处理后字符串 $ # a # b # c # d # c # b # a # a # b # d # c # e # c # 辅助数组p[] 0 0 1 0 1 0 1 0 7 0 1 0 1 0 1 4 1 0 1 0 1 0 1 0 3 0 1 0 LeetCode:longest palindromic substring class Solution {...