Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Jonathan-Uy/CSES-Solutions
/ Node
Class
Node
String Algorithms/Finding Patterns.cpp:6–9 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
4
const int maxN = 1e5+5;
5
6
struct Node {
7
int len, link, cnt, firstpos;
8
map<char,int> nxt;
9
} node[2*maxN];
10
11
char S[maxN], T[5*maxN];
12
int N, M, K, sz, last;
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected