~learn.
lecture · 13:31 · 4 checkpoints · browser voice

Design an elevator system

A multi-car elevator controller: hall calls and car calls, why each car runs LOOK instead of press order, stops that remember the direction wanted, a cost-based dispatch strategy, a tick-by-tick simulated morning, one lock with listeners outside it, and follow-ups that land as new strategies.

01 · 9, then 1, then 8
LLD-04 · Design an Elevator System

Floor 5, going up. Buttons: 9, 1, 8.

Press order: a zig-zag

A car is at floor 5, going up.