Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/algorithmzuo/algorithm-journey
/ index
Method
index
src/class153/FollowUp1.java:151–155 ·
view source on GitHub ↗
(int x)
Source
from the content-addressed store, hash-verified
149
}
150
151
public
static
int
index(
int
x) {
152
int
i = find(x);
153
splay(i, 0);
154
return
key[i];
155
}
156
157
public
static
int
pre(
int
num) {
158
int
i = head, last = head;
Callers
1
main
Method · 0.95
Calls
2
find
Method · 0.95
splay
Method · 0.95
Tested by
no test coverage detected