8000 Merge pull request #1 from mhayter/mhayter-patch-1 · cp-algorithms/cp-algorithms@e8fd4af · GitHub
[go: up one dir, main page]

Skip to content

Commit e8fd4af

Browse files
authored
Merge pull request #1 from mhayter/mhayter-patch-1
Update suffix-automaton.md
2 parents b3184fa + 543fe35 commit e8fd4af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/string/suffix-automaton.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ string lcs (string S, string T) {
702702
for (int i = 0; i < T.size(); i++) {
703703
while (v && !st[v].next.count(T[i])) {
704704
v = st[v].link ;
705-
l = st[v].length ;
705+
l = st[v].len;
706706
}
707707
if (st[v].next.count(T[i])) {
708708
v = st [v].next[T[i]];

0 commit comments

Comments
 (0)
0