Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/algorithmzuo/algorithm-journey
/ up
Method
up
src/class161/Code01_HLD1.java:179–181 ·
view source on GitHub ↗
(int i)
Source
from the content-addressed store, hash-verified
177
}
178
179
public
static
void
up(
int
i) {
180
sum[i] = (sum[i << 1] + sum[i << 1 | 1]) % MOD;
181
}
182
183
public
static
void
lazy(
int
i, long v,
int
n) {
184
sum[i] = (sum[i] + v * n) % MOD;
Callers
2
build
Method · 0.95
add
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected