Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/algorithmzuo/algorithm-journey
/ lr
Method
lr
src/class153/Code04_Bookcase1.java:50–52 ·
view source on GitHub ↗
(int i)
Source
from the content-addressed store, hash-verified
48
}
49
50
public
static
int
lr(
int
i) {
51
return
right[father[i]] == i ? 1 : 0;
52
}
53
54
public
static
void
rotate(
int
i) {
55
int
f = father[i], g = father[f], soni = lr(i), sonf = lr(f);
Callers
2
rotate
Method · 0.95
splay
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected