Full-stack Engineer
Merge overlapping calendar blocks.
- 1Your approach
- 2The follow-up
- 3Reflect & learn
THE INTERVIEWER ASKS
The scenario
Given unsorted time intervals, merge overlaps and return a sorted result. State your rule for intervals that touch at an endpoint.
How would you approach it?
Explain your assumptions, your approach, and why you chose it.