You are given a 2D list schedules representing employees' shift schedules. Each element is represented as a triplet containing the employee’s name, a start time, and an end time.
Your task is to merge overlapping shifts and generate a timeline of intervals. Each interval should display the start time, end time, and the list of employees working during that period. In the final output, employee names must appear in the order they first appeared in the input.
Ask AI Assistant

Ask AI Assistant
Ask me anything about this coding question!
Test Cases
Input
Output
Expected