Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/neetcode-gh/leetcode
/ union
Method
union
java/0684-redundant-connection.java:24–26 ·
view source on GitHub ↗
(int x, int y)
Source
from the content-addressed store, hash-verified
22
}
23
24
public
void
union(
int
x,
int
y) {
25
parent[find(y) - 1] = find(x);
26
}
27
}
Callers
1
findRedundantConnection
Method · 0.95
Calls
1
find
Method · 0.95
Tested by
no test coverage detected