Hello
in this problem I don’t really understand at all why are we breaking the segment [L,R] into two contiguous parts.
for example in the third nested loop what does it even mean to try multiple different break points ?
the editorial in hint 1 assumed that only because it work on a case like [1 1] then it must work on all other cases
maybe I’m overlooking something . any help would be appreciated