摘要: 关于子串的查找 1 char a[maxn],b[maxn]; 2 int lena,lenb,net[maxn]; 3 void getnet() { ///得到next数组 4 lenb=strlen(b); 5 net[0]=-1; 6 int i=0,j=-1; 7 while(i<lenb 阅读全文
posted @ 2019-09-28 02:04 wuliking 阅读(174) 评论(0) 推荐(0) 编辑