04 2013 档案

摘要:求回溯串static int [] GetNextVal(string str) { int [] next= new int [str.length]; int i = 0; int j = -1; next[0] = -1; while (i < str.Length - 1) { if (j == -1 || str[i] == str[j]) { i++; ... 阅读全文
posted @ 2013-04-24 20:49 冯际成 阅读(99) 评论(0) 推荐(0)

返回顶部