Limited time: AI code review, hints, mock interviews, whiteboard analysis, and all Pro features are unlocked. Enroll
โฑ๏ธ 3 min read

LLD / Machine Coding Fundamentals

Everything you need before tackling machine-coding problems. These concepts are what interviewers grade on โ€” not clever algorithms, but how well you organize code under time pressure.

Each topic below is a standalone guide with code in Java, C++, and Python, Mermaid diagrams, and links to the LLD problems that use it.


LLD Fundamentals โ€” Learning Tracker

Track your progress through all 20 topics. Sign in to save across devices.

The Round

# Concept Deep Dive
1 Machine Coding Round (Format, Grading, Timing) Read โ†’
2 The 5-Minute Design Sketch (How to Start Any Problem) Read โ†’
3 UML Class Diagrams (Relationships, Notation) Read โ†’
4 Over-Engineering and YAGNI (When NOT to Use Patterns) Read โ†’

Principles

# Concept Deep Dive
5 SOLID Principles (SRP, OCP, LSP, ISP, DIP) Read โ†’
6 Inheritance vs Composition (When to Use Which) Read โ†’
7 Exception Handling (Custom Hierarchies, Best Practices) Read โ†’

Design Patterns

# Concept Deep Dive
8 Strategy Pattern (Runtime Algorithm Swapping) Read โ†’
9 State Pattern (Clean State Transitions) Read โ†’
10 Observer Pattern (Event-Driven Notifications) Read โ†’
11 Factory Pattern (Simple, Method, Abstract) Read โ†’
12 Builder Pattern (Fluent Object Construction) Read โ†’
13 Singleton Pattern (Thread-Safe, When to Avoid) Read โ†’
14 Composite Pattern (Tree Structures, Uniform Treatment) Read โ†’
15 Command Pattern (Undo/Redo, Action Queues) Read โ†’
16 Decorator Pattern (Dynamic Behavior Wrapping) Read โ†’
17 Template Method Pattern (Algorithm Skeletons) Read โ†’

Advanced Topics

# Concept Deep Dive
18 Concurrency (Locks, Thread Pools, Race Conditions) Read โ†’
19 State Machines (Enum FSM, Transition Tables, Guards) Read โ†’
20 Money Handling (BigDecimal, Minor Units, Ledgers) Read โ†’

If you are starting from scratch, follow this path:

  1. Machine Coding Round โ€” understand the format
  2. SOLID Principles โ€” the evaluation criteria
  3. Strategy Pattern โ€” the most common pattern
  4. State Pattern โ€” the second most common
  5. The 5-Minute Design Sketch โ€” how to start
  6. Try Parking Lot (uses Strategy + Factory)
  7. Try Vending Machine (uses State)
  8. Pick up remaining patterns as you encounter them in problems

After that, move to the 22 LLD Problems โ€” each one references the fundamentals it uses.

Free system design + DSA prep. If it helped you crack an interview, consider supporting.

SensAI SensAI
Beta
Listening...
Tap mic to stop voice mode

Shape what we build next

Every piece of feedback is read by the team and directly influences our roadmap.

What type of feedback?

Install SystemCraft

Add to your home screen for instant access, offline reading, and a distraction-free experience.

Offline reading Faster loads No browser tabs App-like feel

Unlock AI Features

One click to activate - no payment, no credit card. Just sign in and you're in.

AI code review and hints
SensAI chat assistant
AI mock interviews
Whiteboard analysis
100% free during early access