Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/algorithmzuo/algorithm-journey
/ add
Method
add
src/class130/Code01_JumpRight.java:72–79 ·
view source on GitHub ↗
(int j)
Source
from the content-addressed store, hash-verified
70
}
71
72
public
static
void
add(
int
j) {
73
if
(j >= 0 && dp[j] != NA) {
74
while
(l < r && dp[queue[r - 1]] <= dp[j]) {
75
r--;
76
}
77
queue[r++] = j;
78
}
79
}
80
81
public
static
void
overdue(
int
t) {
82
if
(l < r && queue[l] == t) {
Callers
2
compute
Method · 0.95
dfs
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected