kmp-getNext
摘要:
#include <iostream> using namespace std; void getNext(char a[]){ int k=-1,i=0,next[10]; next[0]=-1; while(a[i]!='\0'){ if(k 1 || a[i]==a[k]){ next[++i 阅读全文
posted @ 2021-05-17 10:05 ewitt 阅读(50) 评论(0) 推荐(0) 编辑