diff options
Diffstat (limited to 'string')
| -rw-r--r-- | string/ahoCorasick.cpp | 2 | ||||
| -rw-r--r-- | string/manacher.cpp | 2 | ||||
| -rw-r--r-- | string/rollingHash.cpp | 2 | ||||
| -rw-r--r-- | string/rollingHashCf.cpp | 2 | ||||
| -rw-r--r-- | string/suffixTree.cpp | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/string/ahoCorasick.cpp b/string/ahoCorasick.cpp index 41bd788..c83f9c3 100644 --- a/string/ahoCorasick.cpp +++ b/string/ahoCorasick.cpp @@ -51,4 +51,4 @@ struct AhoCorasick { if (aho[v].nxt[idx] != -1) return aho[v].nxt[idx]; else return v == 0 ? 0 : go(getSuffix(v), idx); } -};
\ No newline at end of file +}; diff --git a/string/manacher.cpp b/string/manacher.cpp index 209896b..03c06e1 100644 --- a/string/manacher.cpp +++ b/string/manacher.cpp @@ -24,4 +24,4 @@ void manacher() { }} //convert lengths to string b (optional) for (int i = 0; i < n; i++) longest[i] = 2 * longest[i] + 1; -}
\ No newline at end of file +} diff --git a/string/rollingHash.cpp b/string/rollingHash.cpp index ad9e7cd..cd88951 100644 --- a/string/rollingHash.cpp +++ b/string/rollingHash.cpp @@ -13,4 +13,4 @@ struct Hasher { ll hash(int l, int r) { // Berechnet hash(s[l..r)). return (pref[r] - power[r-l] * pref[l] % M + M) % M; } -};
\ No newline at end of file +}; diff --git a/string/rollingHashCf.cpp b/string/rollingHashCf.cpp index da534a1..d1b8893 100644 --- a/string/rollingHashCf.cpp +++ b/string/rollingHashCf.cpp @@ -14,4 +14,4 @@ struct Hasher { ll hash(int l, int r) { // Berechnet hash(s[l..r)). return (pref[r] - power[r-l] * pref[l] % m + m) % m; } -};
\ No newline at end of file +}; diff --git a/string/suffixTree.cpp b/string/suffixTree.cpp index 2601c34..4faea86 100644 --- a/string/suffixTree.cpp +++ b/string/suffixTree.cpp @@ -79,4 +79,4 @@ struct SuffixTree { curVert = tree[curVert].suffix ? tree[curVert].suffix : root; }}} -};
\ No newline at end of file +}; |
