Uber | Phone Screen | Merge Sorted Interval Lists

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2019-10-06Added By Anonymous
Source: Link

Company: Uber
Role: unknown
Interview Stage: Phone Screen
Location: unknown
Year: unknown

Original Post Content:

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