KMP实现

kmp next数组 理解

#include 
#include 

void kmp_next(char* s,int* next){
  int i=0;
  next[0]=-1;
  int k=-1;
   while(i

你可能感兴趣的:(KMP实现)