文章分类 -  常用算法

程序中经常使用到的算法
摘要:求回溯串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 冯际成 阅读(98) 评论(0) 推荐(0)

返回顶部