InterviewDryRun
Low-level design interview · Asked at mid and senior level

Design an Elevator System (Low-Level Design)

How the interviewer asks it

“Design the control software for a building with several elevators. Model elevators, requests from floors and from inside cars, and a scheduler that picks which car answers a request. Show the state transitions of one car.”

Typed drills are free and unlimited: the AI scores your answer against the outline below.

What the interviewer is looking for

  • Separating hall calls (floor and direction) from car calls (destination).
  • A state machine per car: idle, moving up, moving down, doors open, out of service.
  • A Scheduler interface so the dispatch algorithm can change.
  • A sensible default algorithm, such as nearest car already moving in the right direction.

How to structure your answer

  1. 01

    Clarify

    Number of floors and cars, capacity, priorities like fire mode.

  2. 02

    Model

    Elevator (current floor, direction, state, stops), Request types, Building, Scheduler.

  3. 03

    State machine

    List valid transitions and what triggers each; doors never open while moving.

  4. 04

    Dispatching

    Score each car for a hall call by distance and direction; assign the best and add the stop.

  5. 05

    Stops

    Each car keeps sorted up and down stop sets and serves them in its current direction first (the elevator algorithm).

Best answers from candidates

No candidate answers yet. Type yours, and if it scores 6 or more you can show it here without your name.

Answers are shared by candidates, without names, after a privacy check. Add yours

Common mistakes

  • One giant class that does dispatching, movement and door control.
  • First-come first-served stop handling that zigzags between floors.
  • No way to take a car out of service.

Follow-up questions to expect

  • Add an express elevator that only stops above floor 20.
  • Reduce waiting time during the morning rush.

Now answer it out loud

Max will ask you this exact question, listen to your answer, push on the weak spots with follow-ups like the ones above, and score you when you finish.

Practice with Max

Free: a 5-minute voice round and unlimited typed drills, with scored feedback. No card, and your camera is never recorded.

More low-level design interview questions

Preparing for this round? Read how to prepare for a low-level design (LLD) interview.