← Interval & Math
Interval & Math Target: 5s
Two intervals overlap iff neither ends before the other starts. Critical for scheduling.
def overlaps(a, b): return a[0] < b[1] and b[0] < a[1]
Type it from memory. Go.