Segment Tree problem
I was solving this segment tree problem . I cannot understand what am I missing here? My solution in Ideone
ABC 483 problems EFG (part 2)