摘要: 1 { 2 next[0]=-1; 3 for(int i = 0,j=-1; i < (int)T.length(); ) 4 { 5 if(j 1 || T[i]==T[j])//i一直比j大;若T[i]与T[j]不相等, else语句能把 6 //j减小到能与该第i个的字母相等或j返回到头时i 阅读全文
posted @ 2019-04-14 19:39 Winston-wmj 阅读(123) 评论(1) 推荐(0) 编辑