← Back to problems
5 passes • minutes 0–70
Antenna Contact Schedule
AeroSpace • satellite passes • interval coloring
Each pass is (id, start, end) in minutes. One antenna can fly one pass at a time. A pass that starts at the minute another ends can reuse that dish. Assign every pass to an antenna A1, A2, … using as few dishes as possible. Reuse the dish that frees earliest. Return the assignments in the original order.
TimeO(n log n)
SpaceO(n)
Step0/0
Ready
Press Play or Step. Five passes, three dishes.