Insert Intveral
Merge Intervals
Problem
Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary).
You may assume that the intervals were initially sorted according to their start times.
For example:
Thought Process
Solution
Last updated
Was this helpful?