Let's say, we have an array: Item = {-1, 0, 3, 6}. We want to construct SegmentTree array to find out the minimum value in a given range. Our segment tree will look like:
The numbers below the nodes show the indices of each values that we'll store in our SegmentTree array. We can see that, to sto...