Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SuprDewd/CompetitiveProgramming
/ size
Method
size
code/data-structures/union_find.cpp:10–10 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
8
p[xp] += p[yp], p[yp] = xp;
9
return true; }
10
int size(int x) { return -p[find(x)]; } };
11
// vim: cc=60 ts=2 sts=2 sw=2:
Callers
nothing calls this directly
Calls
1
find
Function · 0.85
Tested by
no test coverage detected