The coding problems covered merging employee schedules into a timeline, implementing an advertisement retrieval service with priority constraints, and counting special substring pairs. Overall, I found the interview quite challenging and did not pass.
Interview Details
Round 1 — Coding: Employee Shift Timeline
I was given a list of employees and their scheduled working hours. My task was to construct a merged timeline showing which employees were working during each time interval. Each shift was represented by three fields:
Employee name
Start time
End time
The output needed to contain a sequence of intervals, with each interval specifying its start time, end time, and the list of employees actively working during that period. Overlapping shifts needed to be split at the appropriate boundaries. Unlike some similar scheduling problems, this version also included intervals when no employees were working, represented by an empty employee list.
Emma begins working at time 12, followed by Liam at time 32. Their shifts overlap until Emma finishes at time 42. Noah starts at time 52, exactly when Liam finishes, and works until time 82.
Between time 82 and 110, nobody is working, so the corresponding interval contains an empty employee list. Olivia starts at time 110,
Unlock Full Details
Create a free account to unlock this interview experience report.