Segment Tree problem
I was solving this segment tree problem . I cannot understand what am I missing here? My solution in Ideone
CodeChef Starters 133 Solution Discussion