Object-oriented design interview questionHard

Design a Multi-Elevator Dispatch System

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 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

Hidden because they name the technique, which a real interviewer would not tell you.

Show core concepts
Object-Oriented DesignState MachineScheduling Strategy

Continue preparing

Build a complete software engineer mock interview plan

Related Object-Oriented Design

Design an Online Stock Brokerage System

Design a brokerage domain model covering accounts and portfolios, instruments, a cash ledger, market and limit orders, immutable fills, derived positions, order state transitions, and an external exchange gateway boundary — without building a matching engine.

Related Object-Oriented Design

Design a Two-Player Chess Game Engine

Design a chess engine that models a board and pieces, validates legal turns and moves, records move history, and detects check, checkmate, stalemate, resignation, and forfeit.

Related Object-Oriented Design

Design a Cricket Information Platform

Design a cricket scoring domain model covering teams and players, a match, innings, overs and deliveries, batting and bowling scorecards, extras and wickets, striker rotation, over completion, and match results for a configurable limited-overs format.

Related Object-Oriented Design

Design a Group Expense-Splitting Ledger

Design a system where users form groups, log shared expenses split equally, by exact amounts, or by percentage, maintain pairwise balances, and settle debts.