~learn.
lecture · 13:28 · 4 checkpoints · browser voiceIntermediate

Design an ATM

Five states with a guard on every button, a dispenser that plans notes from what is loaded (and where greedy fails), a bank with an idempotent debit and a safe reversal, and a withdrawal ordered so a jam or a lost reply always puts the money back. Plus a blocked card and a joint-account race.

01 · The bank said yes
LLD-11 · Design an ATM

The bank said yes. Then the notes jammed.

Debited, then jammed

Asha asks an ATM for 1,000 rupees.