Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
14
int N, sz, last;
15
16
void init(){
17
node[0].len = 0;
18
node[0].link = -1;
19
sz = 1;
20
last = 0;
21
}
22
23
void extend(char c){
24
int cur = sz++;
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected