
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 · 1306 阅读 · 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 · 875 阅读 · 0 评论