Implement strStr()--字符串匹配_kmp_bkdHash
Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.两种方法:1)bkdHash2)kmp代码分别如下://bkdHashint strStr(string
原创
2016-12-08 19:08:11 ·
353 阅读 ·
0 评论