MCPcopy Create free account
hub / github.com/ShahjalalShohag/code-library / ST

Method ST

Data Structures/HLD.cpp:10–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#define rc ((n << 1) | 1)
9 int t[4 * N], lazy[4 * N];
10 ST() {
11 fill(t, t + 4 * N, -inf);
12 fill(lazy, lazy + 4 * N, 0);
13 }
14 inline void push(int n, int b, int e) {
15 if(lazy[n] == 0) return;
16 t[n] = t[n] + lazy[n];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected