Merge Intervals with Name(s)
Anonymous User
1263

Shall I ask help on How to solve below problem-

For given intervals inputs [from, to, name], return non-overlapping intervals [from, to, name(s)].

Example:
Input
[10, 100, David]
[50, 150, Alex]
[200, 300, Joe]

Output
[10,50, David]
[50, 100, (David, Alex)]
[100, 150, Alex]
[200, 300, Joe]

Comments (4)