摘要: http://www.cnblogs.com/yjiyjige/p/3263858.html KMP算法应该是每一本《数据结构》书都会讲的,算是知名度最高的算法之一了,但很可惜,我大二那年压根就没看懂过~~~ 之后也在很多地方也都经常看到讲解KMP算法的文章,看久了好像也知道是怎么一回事,但总感觉有 阅读全文
posted @ 2016-06-21 15:49 0giant 阅读(5171) 评论(0) 推荐(1)
摘要: Shortest Palindrome Given a string S, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest 阅读全文
posted @ 2016-06-21 15:35 0giant 阅读(171) 评论(0) 推荐(0)