How do i get the first value “>x” in a Segment tree?
I’m new to working on segtrees and i needed to solve a problem where i find the first value > x
in a certain range.
I’ve been using the recursive method to create the segtree and to update it, but i wasn’t able to retrieve the index of the first value > x
in my range.