Uber | Phone Screening Question
Anonymous User
1662
Oct 22, 2019
Oct 22, 2019
Given a time interval list which represents trips, find overlapping trip counts for each time interval and return as a list.
Example:
Input: [(0, 3), (2, 7), (2, 5)]
Output: [(0, 1, 1), (2, 3, 3), (4, 5, 2), (6, 7, 1)]Comments (12)


