| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
谢谢xiaxia同学^-^,不是KMP的问题,而是其它的问题,唉,同一个错误已经犯了第三次了,我真是没救了In Reply To:Re:晕,KMP写的出错了,谁帮忙看一下,或给组数据测测 Posted by:xiaxia at 2006-03-26 23:11:11 > 我的这样
> next[0] = -1;
> while(i < len)
> {
> if(j == -1 || S[i] == S[j])
> {
> ++ i;
> ++ j;
> next[i] = j;
> }
> else
> j = next[j];
> }
>
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator