3 ms·
Once you go beyond integers, using [closed, open) or (open, closed] becomes more important, because otherwise you cannot represent adjacent intervals.
by weavejester 4y ago
Once you go beyond integers, using [closed, open) or (open, closed] becomes more important, because otherwise you cannot represent adjacent intervals.
- HelloNurse 4y agoThe empty interval problem applies to integers too: [15,15) and (15,15] are empty, [x,y] is not for any x and y.
- nh23423fefe 4y agofor any x>y [x,y] is empty, i.e. [15,14] an interval is a set and sets can be empty [x,y) = { z where x<=z and z<y }