Parties join and leave a restaurant waitlist; when a table frees up, seat the first party that fits. Design the data structure — a Verily onsite round.
Parties join and leave a restaurant waitlist; when a table frees up, seat the first party that fits. Design the data structure — a Verily onsite round.
The discussion opens with the full question.