Design Elevator System

Design an elevator control system

Overview

Design a multi-elevator system where multiple elevators serve multiple floors in a building efficiently.

Key Concepts

State Pattern: State of an elevator (Idle, Moving Up, Moving Down)

Strategy Pattern: Elevator selection strategy (Nearest, Same Direction)

Event Loop: Background thread processing elevator requests

💡 Interview Tips

  • Don't overcomplicate the algorithm initially. Use FCFS (First Come First Serve) then optimize with LOOK/SCAN algorithm.

  • Elevator and Request are core entities.

AI Tutor

Ask about the topic

Sign in Required

Please sign in to use the AI tutor

Sign In
Design Elevator System - LLD Interview Questions | LLD | Revise Algo