Segment Tree problem
I was solving this segment tree problem . I cannot understand what am I missing here? My solution in Ideone
Atcoder ABC #354 Solution Discussion