摘要:
kmp核心就是求next数组,而求next数组核心就是记住,next[i]保存的是模式串当前索引不匹配是下一个应该比较的索引 public class KMP { //p模式串 public static int match(String p,String s){ if(s.length()<p.l 阅读全文
posted @ 2020-12-31 21:43
codeNothing
阅读(90)
评论(0)
推荐(0)
浙公网安备 33010602011771号