Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ comp
Function
comp
CPP/graph_tree/Kruskal-Algo.cpp:14–16 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
12
};
13
14
bool comp(node a, node b) {
15
return a.wt < b.wt;
16
}
17
18
int findPar(int u, vector<int> &parent) {
19
if(u == parent[u]) return u;
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected