From fd1f2b36e95c03625297b7b8cba3b1a04a0cc0ed Mon Sep 17 00:00:00 2001 From: mzuenni Date: Tue, 10 Jan 2023 11:40:09 +0100 Subject: change whitespaces --- string/ahoCorasick.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'string/ahoCorasick.cpp') diff --git a/string/ahoCorasick.cpp b/string/ahoCorasick.cpp index bfde5b6..41bd788 100644 --- a/string/ahoCorasick.cpp +++ b/string/ahoCorasick.cpp @@ -5,7 +5,7 @@ struct AhoCorasick { int suffix, exit, character, parent; vector nxt, patterns; vert(int c, int p) : suffix(-1), exit(-1), - character(c), nxt(ALPHABET_SIZE, -1), parent(p) {} + character(c), nxt(ALPHABET_SIZE, -1), parent(p) {} }; vector aho; @@ -29,7 +29,7 @@ struct AhoCorasick { if (aho[v].suffix == -1) { if (v == 0 || aho[v].parent == 0) aho[v].suffix = 0; else aho[v].suffix = go(getSuffix(aho[v].parent), - aho[v].character); + aho[v].character); } return aho[v].suffix; } -- cgit v1.2.3