Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/algorithmzuo/algorithm-journey
/ lazy
Method
lazy
src/class161/Code06_Tourism1.java:185–189 ·
view source on GitHub ↗
(int i, int v)
Source
from the content-addressed store, hash-verified
183
}
184
185
public
static
void
lazy(
int
i,
int
v) {
186
max[i] += v;
187
min[i] += v;
188
addTag[i] += v;
189
}
190
191
public
static
void
down(
int
i) {
192
if
(addTag[i] != 0) {
Callers
2
down
Method · 0.95
add
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected