Machine coding track
LLD Fundamentals
What interviewers actually grade in a machine-coding round: not clever algorithms, but how well you organise code under time pressure. SOLID, all 23 Gang of Four patterns, the four non-GoF ones that keep turning up, then concurrency, state machines and testing.
- 40 lessons in 4 tracks
- ~8h 9m of reading
- 19 free to read
The 4 tracks
The patterns run Creational, then Structural, then Behavioral — the order a catalogue should. That is not the order to learn them in: the reading order below the tracks is.
The Round
Principles
Design Patterns
- Factory Pattern ~8 min
- Abstract Factory ~16 min
- Builder Pattern ~7 min
- Prototype Pattern ~19 min
- Singleton Pattern ~6 min
- Object Pool Pattern ~18 min
- Adapter Pattern ~16 min
- Bridge Pattern ~20 min
- Composite Pattern ~6 min
- Decorator Pattern ~7 min
- Facade Pattern ~10 min
- Flyweight Pattern ~20 min
- Proxy Pattern ~18 min
- Chain of Responsibility ~12 min
- Command Pattern ~6 min
- Interpreter Pattern ~20 min
- Iterator Pattern ~13 min
- Mediator Pattern ~17 min
- Memento Pattern ~19 min
- Observer Pattern ~6 min
- State Pattern ~7 min
- Strategy Pattern ~8 min
- Template Method Pattern ~6 min
- Visitor Pattern ~22 min
- Repository Pattern ~14 min
- Specification Pattern ~18 min
The lessons cover the round itself, the principles you are graded against, all 23 Gang of Four design patterns plus the four non-GoF patterns that keep turning up in interviews (Repository, Specification, Object Pool, Dependency Injection), and the advanced topics — concurrency, state machines, money, collections and testing.
Each topic above is a standalone guide with code in Java, C++, and Python, Mermaid diagrams, and links to the LLD problems that use it.
Recommended Reading Order
The list above is ordered for reference — the patterns run Creational, then Structural, then Behavioral, the way a catalogue should. That is not the order to learn them in.
If you are starting from scratch, follow this path instead:
- Machine Coding Round — understand the format
- SOLID Principles — the evaluation criteria
- Strategy Pattern — the most common pattern
- State Pattern — the second most common
- The 5-Minute Design Sketch — how to start
- Try Parking Lot (uses Strategy + Factory)
- Try Vending Machine (uses State)
- Dependency Injection and Testing in Machine Coding — the pair that decides whether an interviewer can see your design work
- Pick up remaining patterns as you encounter them in problems
Three lessons are worth reading out of order the moment they bite. Immutability and Equality is the one most pattern lessons lean on. Collections and Complexity is where an accidental O(n) comes from. Over-Engineering and YAGNI is the counterweight to a catalogue this size — knowing 27 patterns is only an advantage if you can also say which ones a problem does not need.
After that, move to the 40 LLD Problems — each one references the fundamentals it uses.