
KMP
文章平均质量分 85
jmspan
这个作者很懒,什么都没留下…
展开
-
LeetCode 214. Shortest Palindrome(最短回文)
原题网址:https://leetcode.com/problems/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 palindrom原创 2016-05-06 02:42:12 · 1273 阅读 · 0 评论 -
LeetCode 28. Implement strStr()(实现子串定位)
原题网址:https://leetcode.com/problems/implement-strstr/Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.方法:KMP算法。p原创 2016-05-20 10:35:48 · 853 阅读 · 0 评论