The segment Tree code can be found in it . I have not written it in a container .
I have written the basic code with comments in it mentioning the variables and functions as data members and functions . So , it will help you write it in a container/class .
The segment Tree code can be found in it . I have not written it in a container . I have written the basic code with comments in it mentioning the variables and functions as data members and functions . So , it will help you write it in a container/class .