Uber | Phone Screen | Merge Sorted Interval Lists

The question was to merge two separate lists of intervals. The list of individual intervals were sorted.

My approach was as below:

  1. Merge the two sorted lists in a single sorted list.
  2. Implementing the merging of intersecting intervals.

The leetcode problem can be found here.

Wish me luck for the onsite rounds.

Comments (6)