Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SuprDewd/CompetitiveProgramming
/ HLD_naive
Method
HLD_naive
code/graph/hld.test.cpp:8–8 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
6
vii parent;
7
8
HLD_naive(int _n) : n(_n), adj(n), parent(n, ii(-1, ID)) { }
9
10
void add_edge(int u, int v) {
11
adj[u].push_back(ii(v, ID));
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected