Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/algorithmzuo/algorithm-journey
/ split
Method
split
src/class201/Code07_Network1.java:151–155 ·
view source on GitHub ↗
(int x, int y)
Source
from the content-addressed store, hash-verified
149
}
150
151
public
static
void
split(
int
x,
int
y) {
152
makeroot(x);
153
access(y);
154
splay(y);
155
}
156
157
public
static
void
link(
int
x,
int
y) {
158
makeroot(x);
Callers
1
query
Method · 0.95
Calls
3
makeroot
Method · 0.95
access
Method · 0.95
splay
Method · 0.95
Tested by
no test coverage detected