BlackRock·Software Engineer·Technical Phone Screen
- Given a sorted list of non-overlapping intervals and a new interval, insert the new interval into the list such that the result remains sorted and non-overlapping, merging where needed.
“I jumped straight to coding and missed the overlap condition for a minute.”