Segment Tree problem
I was solving this segment tree problem . I cannot understand what am I missing here? My solution in Ideone
Codeforces Round 943 Solution Discussion