Google Phone Screen

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2025-10-21Added By Anonymous
Source: Link

Company: Google
Role: unknown
Interview Stage: Phone Screen
Location: unknown
Year: unknown

Original Post Content:

Implement a restaurant waitlist. It should support the following features:
A party of customers can join the waitlist.
A previously joined party can leave the waitlist at any time.
The restaurant serves the first party whose size fits the empty table size at a time (a table size is given as an argument).

Comments