MCPcopy Create free account
hub / github.com/Jonathan-Uy/CSES-Solutions / Node

Class Node

String Algorithms/Repeating Substring.cpp:6–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4const int maxN = 1e5+5;
5
6struct Node {
7 int len, link, cnt, firstpos;
8 map<char,int> nxt;
9} node[2*maxN];
10
11char S[maxN];
12bool vis[2*maxN];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected