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

Method init

Data Structures/Interval Set.cpp:10–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8 map<pair<int, int>, T> value;//{r,l}=val
9
10 void init(int n) {
11 value[ {n, 1}] = (T)0; //initial value
12 }
13 //assign a[i]=val for l<=i<=r
14 //returns affected ranges before performing this assign operation
15 vector<pair<pair<int, int>, T> > assign(int l, int r, T val) {

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected