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

Popular posts from this blog

PHP while loop dynamic rowspan -

timer - Java TimerTask cancel -

android - How to read a column value in parse.com without accessing an object or a pointer -