← Interval & Math

Micro-Drill #114 — Check overlap

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.

Practice Problems

← Micro #113 Micro #115 →