segment tree - SegmentTree: what are the advantages of using [l, r) (open interval on the right) in the implementation? -
i have seen segmenttree implementation uses [l, r) represent interval, while others use [l, r].
so question: why want use [left, right)? seems adds complexity in code understand if there no obvious advantages?
thanks answers in advance!
Comments
Post a Comment