數據結構總結之KMP

1.模板:ios #include <iostream> #include <string.h> #include <stdio.h> using namespace std; int next[1010]; char s[1000],p[1000]; void GetNextval() { int pLen = strlen(p); next[0] = -1; int k
相關文章
相關標籤/搜索