Level 6 of 7 · about 3 weeks
Case studies I: classic LLD questions
Seven full designs run through the five-step method: parking lot, tic-tac-toe, snake and ladder, vending machine, ATM, library management and chess.
Modules
Core: everyone needs it. Common: most jobs use it. Specialist: optional depth, safe to skip on a first read.
1
Parking lot
Find a spot, issue a ticket, charge a fee, and keep two cars out of one spot
Core 6 parts · about 4 hours
2
Tic-tac-toe
A small game that tests clean separation, rule checks and win detection
Core 6 parts · about 3 hours
3
Snake and ladder
Notice that a snake and a ladder are the same idea, then keep dice and rules replaceable
Core 6 parts · about 3 hours
4
Vending machine
A machine that lives in states, and gives change only if it has the coins
Core 6 parts · about 4 hours
5
ATM
Sign in with a card, take cash safely, and never charge for cash that was not given
Core 6 parts · about 4 hours
6
Library management
A title is not a copy, a loan has a life, and the waiting line must be fair
Core 6 parts · about 4 hours
7
Chess
Give each piece its own movement, keep the rules of the game in one place
Common 6 parts · about 5 hours