摘要: KMP 首先有暴力算法: int findPos(char S[], char T[]) { int lens = strlen(S), lent = strlen(T), i = 0, j = 0; while(i<lens && j<lent) { if (S[i] == T[j]) i++,j 阅读全文
posted @ 2022-10-18 19:36 Uzhia 阅读(30) 评论(0) 推荐(0)