MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / eertree

Method eertree

code/strings/eertree.cpp:10–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8struct eertree {
9 int last, sz, n;
10 eertree() : last(1), sz(2), n(0) {
11 st[0].len = st[0].link = -1;
12 st[1].len = st[1].link = 0; }
13 int extend() {
14 char c = s[n++]; int p = last;
15 while (n - st[p].len - 2 < 0 || c != s[n - st[p].len - 2])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected