Product design question

Design an algorithm for an elevator during COVID-19.

Practice this question out loud. An AI interviewer asks it, follows up like a real interviewer would, and scores your answer. Type or speak.

Start a mock interview on this question · Mock interview from a job description

What this question tests

Designing an algorithmic system that balances safety constraints with normal operational efficiency.

How to approach it

  1. Clarify the goal: minimize close contact and crowding in elevators during a pandemic while keeping wait times reasonable.
  2. Define constraints: a maximum occupancy per car well below normal capacity, and spacing rules between passengers.
  3. Design the algorithm: batch requests by direction and destination floor to minimize stops and shared trips among strangers, prioritizing single-party or same-household groups per car.
  4. Add a queuing and signage system so people can see estimated wait and occupancy before boarding, reducing crowding at the door.
  5. Weigh the trade-off explicitly: stricter occupancy limits increase safety but increase wait times and building throughput pressure, especially at rush hour.
  6. Define success metrics: average wait time under capacity limits, and occupancy compliance rate.

What a strong answer includes

Common mistakes

Likely follow-up questions

More product design questions

More questions from Google

Learn the skill behind it

Chapters of the AI PM course that teach what this question tests.

Preparing for a specific role?

Book summaries for this kind of question

Browse all 4,000+ questions in the bank