diff options
Diffstat (limited to 'string/suffixTree.cpp')
| -rw-r--r-- | string/suffixTree.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/string/suffixTree.cpp b/string/suffixTree.cpp index f96992e..7af3ee6 100644 --- a/string/suffixTree.cpp +++ b/string/suffixTree.cpp @@ -64,7 +64,7 @@ struct SuffixTree { break; } int split = newVert(tree[nxt].start, - tree[nxt].start + curLen); + tree[nxt].start + curLen); tree[curVert].next[s[curEdge]] = split; int leaf = newVert(pos, sz(s)); tree[split].next[s[pos]] = leaf; @@ -78,6 +78,6 @@ struct SuffixTree { curEdge = pos - remainder + 1; } else { curVert = tree[curVert].suffix ? tree[curVert].suffix - : root; + : root; }}} };
\ No newline at end of file |
