kmp
yp_2013
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
hdu 4125 二叉搜索树建立与kmp
#include <set> #include <map> #include <queue> #include <stack> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <iostream> #include <limits.h> #include <string.h> #include <string> #i原创 2016-06-10 16:38:38 · 343 阅读 · 0 评论 -
kmp单片自动机
#include <bits/stdc++.h> using namespace std; const int maxn = 1e5 + 10;int nxt[maxn]; // find s in t int kmp(char *s, char *t) { int ret = 0; int m = strlen(s); nxt[0] = -1; for (int i原创 2016-06-22 10:59:25 · 360 阅读 · 0 评论
分享