Meeting Scheduler
Medium · Intervals · about 20 minutes
Asked at Amazon, DoorDash, Uber, Google, Pinterest, Grab.
Two people have availability lists slots1 and slots2 (each [start, end]; slots of the same person don't overlap). Return the earliest time slot [start, start + duration] that works for both, or [] if there is none.