Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring.
This problem is an implementation of Manacher's Algorithm.
Reference:
Chinese: http://www.felix021.com/blog/read.php?2040
English: http://leetcode.com/2011/11/longest-palindromic-substring-part-ii.html
代码参考:http://blog.youkuaiyun.com/tingmei/article/details/8053521
本文介绍了一种高效的算法——Manacher算法,用于在给定字符串S中找到最长的回文子串。假设S的最大长度为1000,并且存在唯一的最长回文子串。文章提供了算法的实现思路及参考资料。

被折叠的 条评论
为什么被折叠?



