Hard

Design a Multi-Elevator Dispatch System Object-Oriented Design Interview

Design a controller for multiple elevators that accepts hall and cabin requests, schedules cars, models movement and doors safely, and supports replaceable dispatch policies.

1. Problem Statement

Design a multi-elevator system that handles hall calls and cabin floor selections, dispatches requests to appropriate cars, and models movement, stops, and door operation safely.

2. Live Coding Format

Work in the provided coding workspace while explaining your decisions to the live interviewer. Validation may use inline tests, examples, comments, or a verbal walkthrough.

3. Key Focus Areas

  • 1
    Hall-call versus cabin-request modeling
  • 2
    Elevator car state machine and safety invariants
  • 3
    Multi-car dispatch strategy
  • 4
    Request ordering, fairness, and starvation

4. What Strong Candidates Should Demonstrate

  • Separate elevator-car state from building-wide dispatch coordination.
  • Model safe movement, door, and stop transitions explicitly.
  • Use a strategy boundary for scheduling and explain fairness trade-offs.
  • Validate multi-request behavior with a deterministic handwritten trace.

Want interactive feedback?

Practice this problem in the live coding workspace while the interviewer probes your clarification, implementation, trade-offs, and validation.

Continue to Dashboard

Core Concepts

Object-Oriented DesignState MachineScheduling Strategy

Continue preparing

Build a complete software engineer mock interview plan

Related Object-Oriented Design

Design a Hotel Management System

Design a hotel domain model covering room types and rooms, guests, a half-open date-range value object, the reservation lifecycle, room assignment, check-in/out, and a charges folio, while preventing overlapping bookings on the same room.

Related Object-Oriented Design

Design a Restaurant Management System

Design a restaurant domain model covering tables and capacity, reservations for time slots, seated parties, a menu, orders with priced line items, kitchen status, and bills with payments, keeping booking and order/kitchen state transitions correct.

Related Object-Oriented Design

Design an Airline Management System

Design an airline domain model covering airports, aircraft seat layouts, scheduled flights versus dated flight instances, passengers, reservations and tickets, seat assignment, and flight status transitions.

Related Object-Oriented Design

Design an Expense Management System

Model the core domain objects, state transitions, approval policies, and audit history for an employee expense management system.