We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b61156a commit dbfcd24Copy full SHA for dbfcd24
lps(KMP).cpp
@@ -7,17 +7,14 @@ void LPS(string txt,vector<int> &lps){
7
len++;
8
lps[i] = len;
9
i++;
10
- continue;
11
}
12
else{
13
if(len==0){
14
lps[i] = 0;
15
16
17
18
19
len = lps[len-1];
20
21
22
23
@@ -30,3 +27,5 @@ int main(){
30
27
LPS(pattern,lps);
31
28
return 0;
32
29
+
0 commit comments