RepostedGoogle logo

Google · Onsite

In process

Google New Grad Onsite, Customer Wait Time: 1 Experience

Software engineer · New GradMaster's degreeJun 2025
Shared by

Google new grad SWE onsite, June 2025: n workers with fixed service times and m customers waiting; how long until you are served?

At a glance

Coverage: one Google software engineer new grad candidate; reported June 2025.

What came up

Topic Reports Last seen
Binary search on the answer 1 of 1 Jun 2025

Questions we found

Algorithms / Data Structures

Question Reports Last seen
Wait Time for the Next Customer 1 Jun 2025

1 detailed candidate timeline

01: When does the next worker free up?

Report date: June 2025 · Role: Software Engineer, New Grad · Result: not disclosed

  1. An array arr of length n gives each worker's time to serve one customer; m customers are already waiting. If you arrive next, how long until a worker starts serving you? Wait Time for the Next Customer.
  2. A commenter read arr[i] as worker i's fixed service time and suggested binary-searching the answer: for a time x, count how many customers the workers can start or finish by x, and move the bounds by whether that reaches m.
  3. The report did not say whether workers start idle, whether the queue is first-come-first-served, or whether the wait ends when service starts or finishes; our version states those rules.

Common questions

What is the Google wait-time-for-next-customer question?

Report 01 got n workers with service times and m waiting customers; find your wait. Binary search on time is one approach.

Keep practicing

Sources: Anywhere useful interview info can be found.

0 total reactions. Your reactions: none.
0 comments

Comments

0

No comments yet — be the first to share what you know.