摘要:
Manacher 算法是时间、空间复杂度都为 O(n) 的解决 Longest palindromic substring(最长回文子串)的算法。回文串是中心对称的串,比如 'abcba'、'abccba'。那么最长回文子串顾名思义,就是求一个序列中的子串中,最长的回文串。本文最后用 Python ... 阅读全文
posted @ 2015-06-16 18:11
eGust
阅读(6737)
评论(0)
推荐(1)
浙公网安备 33010602011771号