标签:pex har else lse ++ int next col code
void getnxt(char *s,int *next) { int k=-1; int j=0; pext[j]=-1; while(j<len) { if(k==-1 || s[j]==s[k]) { k++; j++; pext[j]=k; } else { k=pext[k]; } } }
标签:pex har else lse ++ int next col code
原文地址:https://www.cnblogs.com/dealer/p/13388944.html