Skip to content

Commit 9e46710

Browse files
authored
Update string_KMP.cc
1 parent 3947301 commit 9e46710

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

arc_design_contest/2021/HUST_SmartMeter/src/string_KMP.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "string_KMP.h"
22

3-
static void Next(char*T,int *next){
3+
static void Next(char*T,int *next)
4+
{
45
int i=1;
56
next[1]=0;
67
int j=0;
@@ -9,7 +10,8 @@ static void Next(char*T,int *next){
910
i++;
1011
j++;
1112
next[i]=j;
12-
}else{
13+
}
14+
else{
1315
j=next[j];
1416
}
1517
}

0 commit comments

Comments
 (0)