summaryrefslogtreecommitdiff
path: root/string
diff options
context:
space:
mode:
authorMZuenni <michi.zuendorf@gmail.com>2023-02-13 16:46:09 +0100
committerMZuenni <michi.zuendorf@gmail.com>2023-02-13 16:46:09 +0100
commit54946c9945857e42b8eb4025a66d3344bd53f07c (patch)
tree083a4f68ac29dd31865474fcec4e0743520a13ea /string
parentcd657bcfa53ee3b5b200820b9d5bad510d098920 (diff)
reformatted lineendings
Diffstat (limited to 'string')
-rw-r--r--string/ahoCorasick.cpp2
-rw-r--r--string/manacher.cpp2
-rw-r--r--string/rollingHash.cpp2
-rw-r--r--string/rollingHashCf.cpp2
-rw-r--r--string/suffixTree.cpp2
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
+};