On-Call Rotation Schedule
Given an on-call rotation schedule with each person's name, start timestamp, and end timestamp, return a non-overlapping rotation table showing all people on-call during each time interval.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Late October, 2026
# Given on-call rotation schedule for multiple people by: their unique name, start time (timestamp 0-max int64) and end time (timestamp 0-max int64) of the rotation: # Example input: # Name | Start | End # ----- | ----- | --- # Abby | 10 | 100 # Ben | 50 | 70 # Carla | 60 | 120 # David | 150 | 300 # our goal is to return a rotation table without overlapping periods representing who is on call during that time. # Return "Start time", "End time" and list of on-call people 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
Hello Interview Premium
Your account is free and you can post anonymously if you choose.