Kquery0 segment tree

why in query function(partial overlap case left+right is returned

@nmaurya760,
Because no. of element greater then k in parent = no. of element greater than k in left_child + no. of element greater than k in right_child.

1 Like