Build a Combined People Schedule
Problem statement
Each half-open schedule entry is [name,start,end], with integer times written as decimal strings.
The problem statement continues
ProExamples
Example 1
roster = [["Mary","10","40"],["John","30","50"],["Peter","50","80"],["Crystal","100","150"],["Jane","120","180"]]return = [["10","30","Mary"],["30","40","Mary,John"],["40","50","John"],["50","80","Peter"],["80","100",""],["100","120","Crystal"],["120","150","Crystal,Jane"],["150","180","Jane"]]The result splits at every start or end and includes the 80-to-100 gap.
FastPrep Pro
Reported in 1 Google interview this weekUnlock this recently reported problem
FastPrep Pro gives you full access to interview problems reported within the last week.
- Full problem statement and constraints
- 2 more worked examples, explained
- Guided hints and editorial
- Run your code on real test cases
$8.25/month
$99 billed yearly — or $19 month-to-month. Cancel anytime.
Free plan — 2 of 2 free unlocks used this week