SDUT - 3311 数据结构实验之串三:KMP应用

#include <stdio.h> #include <stdlib.h> #include <string.h> int a[10000005], b[10000005], nex[10000005]; void pre(int a[], int n) { int i, j; i = 0; j = nex[0] = -1; while(i < n) {
相关文章
相关标签/搜索