Bird
Raised Fist0

In a building with 10 floors and 3 elevators, how can the system handle simultaneous requests from floors 2, 5, and 9 efficiently?

hard📝 Trade-off Q9 of Q15
LLD - Design — Elevator System
In 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 only
BIgnore requests from floors 5 and 9
CAssign each request to the nearest elevator moving in the correct direction
DAssign requests randomly to any elevator
Step-by-Step Solution
Solution:
  1. Step 1: Understand efficient request handling

    Assigning requests to nearest elevators moving correctly reduces wait and travel time.
  2. Step 2: Evaluate other options

    Assigning all to one elevator or ignoring requests causes delays; random assignment is inefficient.
  3. Final Answer:

    Assign each request to the nearest elevator moving in the correct direction -> Option C
  4. Quick Check:

    Efficient handling = Nearest elevator assignment [OK]
Quick Trick: Match requests with nearest suitable elevator [OK]
Common Mistakes:
MISTAKES
  • Overloading one elevator
  • Ignoring requests
  • Random assignments

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes