Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ShahjalalShohag/code-library
/ pull
Method
pull
Data Structures/Segment Tree 2D Dynamic.cpp:17–23 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
15
val = g = value;
16
}
17
void pull() {
18
g = val;
19
if(l) g = __gcd(g, l->g);
20
if(r) g = __gcd(g, r->g);
21
mn = (l ? l->mn : pos);
22
mx = (r ? r->mx : pos);
23
}
24
};
25
//memory O(n)
26
struct treap {
Callers
3
split
Method · 0.45
merge
Method · 0.45
upd
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected