3 ms·
To find whether a and b intervals overlap (ends are not included): overlap = a.start < b.end and b.start < a.end
by d0mine 9y ago
To find whether a and b intervals overlap (ends are not included):
overlap = a.start < b.end and b.start < a.end
- d0mine 9y agoWhy is it downvoted? The formula is correct and it is simple -- if you don't understand it, just ask.