2013年1月9日
摘要: 一开始写了个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... 阅读全文
posted @ 2013-01-09 23:07 kkmm 阅读(358) 评论(0) 推荐(0) 编辑