摘要:
一开始写了个KMP算法,大计算量居然超时,后来用最简单的蛮力算法,居然过了。。class Solution {public: char *strStr(char *haystack, char *needle) { // Start typing your C/C++ solution below // DO NOT write int main() function int hayLen = strlen(haystack); int neeLen = strlen(needle); for (in... 阅读全文