Pairwise Overlap of Two Sorted Schedules

Asked at Uber · Coding Questions · Difficulty: Medium · Last asked Jan 9, 2026

Two people each have a list of busy time slots for the day. Each list is sorted and none of a person's own slots overlap. Find every stretch of time during which both people are busy.

Loading the problem…