Machine-coding case studies
Design an Elevator System
Multiple elevators, hall and cabin requests, and a scheduler that decides which car goes where, modelled with a direction State machine and a pluggable dispatch Strategy. An animated lesson where the diagram draws itself as the design grows.
- Lesson 6 of 6
- Animated diagrams
Sign in with Google or GitHub and you land straight on this page. DSA comes with the all labs plan and every ChaiCode batch.
Machine-coding case studies
What you will learn
- 1. Clarify requirements (always do this first)
- 2. Find the nouns → the classes
- 3. Each elevator is a state machine
- 4. The scheduler is a Strategy
- 5. Mention the hard part
More low-level design
Watch Design an Elevator System take shape
Sign in and the lesson opens with its diagram ready to play, and the rest of Machine-coding case studies beside it.
DSA comes with the all labs plan and every ChaiCode batch.