From 54946c9945857e42b8eb4025a66d3344bd53f07c Mon Sep 17 00:00:00 2001 From: MZuenni Date: Mon, 13 Feb 2023 16:46:09 +0100 Subject: reformatted lineendings --- string/ahoCorasick.cpp | 2 +- string/manacher.cpp | 2 +- string/rollingHash.cpp | 2 +- string/rollingHashCf.cpp | 2 +- string/suffixTree.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'string') 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 +}; -- cgit v1.2.3