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