首页 > 其他 > 详细

[LeetCode] Longest Palindromic Substring

时间:2014-08-26 19:09:06      阅读:275      评论:0      收藏:0      [点我收藏+]

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.

方法:

Manacher‘s algorithm,具体看这里http://leetcode.com/2011/11/longest-palindromic-substring-part-ii.html

或者有比较好的博客:http://www.felix021.com/blog/read.php?2040

 

[LeetCode] Longest Palindromic Substring

原文:http://www.cnblogs.com/Xylophone/p/3937700.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!