Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/algorithmzuo/algorithm-journey
/ rank
Method
rank
src/class148/FollowUp1.java:149–151 ·
view source on GitHub ↗
(int num)
Source
from the content-addressed store, hash-verified
147
}
148
149
public
static
int
rank(
int
num) {
150
return
small(head, num) + 1;
151
}
152
153
public
static
int
small(
int
i,
int
num) {
154
if
(i == 0) {
Callers
2
remove
Method · 0.95
main
Method · 0.95
Calls
1
small
Method · 0.95
Tested by
no test coverage detected