摘要: KMP算法 KMP理论学习链接 算法模板(从1开始) char p[maxn],s[maxm]; ///p为模板数组,s为原数组 int ne[maxn]; ///next数组 int n,m;///n为模板 void get_next() { for (int i = 2, j = 0; i <= 阅读全文
posted @ 2021-05-19 15:50 Hoppz 阅读(412) 评论(0) 推荐(0)