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

Function init

String Algorithms/Distinct Substrings.cpp:16–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14int N, sz, last;
15
16void init(){
17 node[0].len = 0;
18 node[0].link = -1;
19 sz = 1;
20 last = 0;
21}
22
23void extend(char c){
24 int cur = sz++;

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected