看到回文问题的方向

1.Manacher算法
2.考虑正序和逆序结合 见https://leetcode.cn/problems/longest-palindromic-subsequence/description/

posted @ 2025-08-24 14:52  江海一归客  阅读(4)  评论(0)    收藏  举报