segment_tree.h
Go to the documentation of this file.
Segment tree class templatized by the type associated with every interval and the means of combining ...
Definition: segment_tree.h:24
void update(int i, AssocT &new_val)
AssocT range_query(int i, int j)
SegmentTree(std::vector< AssocT > &v)