Build a merged timeline of employee shifts as non-overlapping segments.
Unlock detailed company stats for this questionUpgrade
Given a list of employee shifts, each as [name, startTime, endTime], build the merged shift timeline: break the full time range into non-overlapping segments, where each segment lists every employee on shift during that exact window.
Example roster: Mary [10,40], John [30,50], Peter [50,80], Crystal [100,150], Jane [120,180].
Format · Virtual phone screen.
Community answers
No answers contributed by the community yet.
Related courses

Course

Course
Course
