Skip to content

Commit dbfcd24

Browse files
authored
Update lps(KMP).cpp
1 parent b61156a commit dbfcd24

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lps(KMP).cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,14 @@ void LPS(string txt,vector<int> &lps){
77
len++;
88
lps[i] = len;
99
i++;
10-
continue;
1110
}
1211
else{
1312
if(len==0){
1413
lps[i] = 0;
1514
i++;
16-
continue;
1715
}
1816
else{
1917
len = lps[len-1];
20-
continue;
2118
}
2219
}
2320
}
@@ -30,3 +27,5 @@ int main(){
3027
LPS(pattern,lps);
3128
return 0;
3229
}
30+
31+

0 commit comments

Comments
 (0)