Walmart SDE-3 Interview , Dallas
Anonymous User
1210
Sep 13, 2023
Sep 13, 2023
Input:
Given Names , start and end timestamp for the persons who are on a on call duty. Return the output with start and end times with who all are working in this intervals.
| Name | Start | End |
|---|---|---|
| Abby | 10 | 100 |
| Ben | 50 | 70 |
| Carla | 60 | 120 |
| David | 150 | 300 |
Output:
| Start | End | Names |
|---|---|---|
| 10 | 50 | Abby |
| 50 | 60 | Abby, Ben |
| 60 | 70 | Abby, Ben, Carla |
| 70 | 100 | Abby, Carla |
| 100 | 120 | Carla |
| 150 | 300 | David |
Comments (8)

