摘要: KMP未优化: #include <iostream> #include <string> using namespace std; /* P 为模式串,下标从 0 开始 */ void GetNext(string P, int next[]) { int p_len = P.size(); in 阅读全文
posted @ 2019-10-16 16:23 kaike 阅读(111) 评论(0) 推荐(0) 编辑