I have seen some SegmentTree implementation uses [l, r) to represent an interval, while some others use [l, r].
So my question: why we would want to use [left, right)? Seems it adds some complexity in the code to understand if there are no obvious advantages?
Thanks for answers in advance!