Merge Roster Schedules

Given a roster where each entry is [name, start, end] meaning the person is on duty during [start, end), return the merged schedule: split the range from the earliest start to the latest end at ev...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: