LLD - Design — Elevator SystemIn a building with 10 floors and 3 elevators, how can the system handle simultaneous requests from floors 2, 5, and 9 efficiently?AAssign all requests to the first elevator onlyBIgnore requests from floors 5 and 9CAssign each request to the nearest elevator moving in the correct directionDAssign requests randomly to any elevatorCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand efficient request handlingAssigning requests to nearest elevators moving correctly reduces wait and travel time.Step 2: Evaluate other optionsAssigning all to one elevator or ignoring requests causes delays; random assignment is inefficient.Final Answer:Assign each request to the nearest elevator moving in the correct direction -> Option CQuick Check:Efficient handling = Nearest elevator assignment [OK]Quick Trick: Match requests with nearest suitable elevator [OK]Common Mistakes:MISTAKESOverloading one elevatorIgnoring requestsRandom assignments
Master "Design — Elevator System" in LLD9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepArchTryChallengeDesignRecallScale
More LLD Quizzes Behavioral Design Patterns — Part 2 - Visitor pattern - Quiz 3easy Design — Elevator System - Why elevator design tests state machines - Quiz 6medium Design — Library Management System - Why library management tests CRUD design - Quiz 3easy Design — Parking Lot System - Concurrency considerations - Quiz 2easy Design — Tic-Tac-Toe Game - Requirements and game rules - Quiz 14medium Design — Tic-Tac-Toe Game - Why game design tests model-view separation - Quiz 8hard Design — Tic-Tac-Toe Game - Why game design tests model-view separation - Quiz 2easy Design — Tic-Tac-Toe Game - Board, Player, Game classes - Quiz 10hard Design — Tic-Tac-Toe Game - Board, Player, Game classes - Quiz 1easy Design — Tic-Tac-Toe Game - Move validation - Quiz 2easy