(1)传统的字符串匹配算法:注意这道题中各种特殊情况的返回值。传统字符串匹配就是让目标字符串从第一个字母开始逐个匹配源字符串的每一个字符,直到匹配完全。class Solution {public: int strStr(string haystack, string needle) { ... Read More
posted @ 2015-06-01 16:12 sunalive Views(134) Comments(0) Diggs(0)