Low-Level Design (LLD / OOD)
Object-oriented system design at the class level. Machine-coding round preparation: classic problems with full solutions, class diagrams, design-pattern application, and trade-off discussion.
01The LLD Interview Framework
MidNot started
The LLD Interview Framework
How to approach a 45-minute LLD round: the 6-step framework, scoping questions, when to code vs diagram, anti-patterns, and how interviewers evaluate.
01The 6-step LLD framework: clarify → entities → relationships → class design → patterns → trade-offs.Mid02What questions should you ALWAYS ask before designing?Mid03How do you scope a vague prompt in 5 minutes?Mid02Design Pattern Quick Reference (Applied)
MidNot started
Design Pattern Quick Reference (Applied)
The GoF patterns re-grouped by the LLD trigger that should make you reach for each one — Strategy, Factory, Builder, Observer, State, and the rest.
01Creational triggers: when to reach for Factory, Abstract Factory, Builder, Singleton.Mid02Structural triggers: Decorator, Adapter, Proxy, Facade, Composite.Mid03Behavioral triggers: Strategy, Observer, Template Method, Command, State, Chain of Responsibility.Mid03Concurrency Considerations in LLD
SeniorNot started
Concurrency Considerations in LLD
When the LLD round expects thread-safe code, and the toolkit: synchronized, ReentrantLock, ReadWriteLock, ConcurrentHashMap, atomics, BlockingQueue, and immutability.
01When does the interviewer expect thread-safety?Senior02Coarse-grained synchronized vs fine-grained locking — when to choose each?Senior03ConcurrentHashMap vs Collections.synchronizedMap, and the atomics/RW-lock toolkit.Senior04Design a Parking Lot
MidNot started
Design a Parking Lot
The most common LLD problem worldwide. Multi-floor lot, typed spots and vehicles, ticketing, pricing strategy, and availability notifications.
01Design a parking lot — full class-level solution.Mid05Design an Elevator System
SeniorNot started
Design an Elevator System
Scheduling strategies (FCFS, SCAN, LOOK, nearest-car), elevator state machine, button commands, and multi-car controllers.
01Design an elevator system — full class-level solution.Senior06Design a Library Management System
MidNot started
Design a Library Management System
Books vs book-items (copies), members, loans and reservations, fine calculation, and overdue notifications.
01Design a library management system — full class-level solution.Mid07Design a Vending Machine
MidNot started
Design a Vending Machine
The classic State-pattern problem: Idle / HasMoney / Dispensing / OutOfStock states, payment strategy, and inventory.
01Design a vending machine — full class-level solution (State pattern).Mid08Design a Tic-Tac-Toe / Chess Game
SeniorNot started
Design a Tic-Tac-Toe / Chess Game
Polymorphic piece movement, board modeling, move validation per piece, undo via Command, and the game state machine.
01Design a tic-tac-toe / chess game — full class-level solution.Senior09Design a Snake & Ladder Game
MidNot started
Design a Snake & Ladder Game
Board, snakes/ladders, dice strategy, players, and the turn loop — a compact warm-up problem.
01Design a snake & ladder game — full class-level solution.Mid10Design an ATM
SeniorNot started
Design an ATM
ATM state machine, transactions as commands for logging/replay, denomination dispensing via Chain of Responsibility, and bank integration.
01Design an ATM — full class-level solution.Senior11Design a Movie Ticket Booking System (BookMyShow)
SeniorNot started
Design a Movie Ticket Booking System (BookMyShow)
Cinemas, shows, seats, and the central concurrency challenge: two users booking the same seat. Optimistic vs pessimistic locking and seat-hold TTL.
01Design a movie ticket booking system — full class-level solution.Senior12Design a Ride-Sharing System (Uber / Ola)
SeniorNot started
Design a Ride-Sharing System (Uber / Ola)
Rider/driver model, ride state machine, surge-pricing and matching strategies — the LLD slice of a hybrid LLD/HLD problem.
01Design a ride-sharing system (class level) — full solution.Senior13Design a Logger Library (like Log4j / SLF4J)
SeniorNot started
Design a Logger Library (like Log4j / SLF4J)
The pattern-composition showcase: Chain of Responsibility, Strategy, Singleton, Observer, and Decorator combined into one logging framework.
01Design a logger library — full class-level solution (5+ patterns).Senior14Design a Rate Limiter
SeniorNot started
Design a Rate Limiter
Token Bucket, Leaky Bucket, Fixed Window, Sliding Window Log/Counter — the algorithms in depth, behind a Strategy interface. The highest-leverage senior problem.
01Design a rate limiter — full class-level solution with the four algorithms.Senior15Design an LRU / LFU Cache
SeniorNot started
Design an LRU / LFU Cache
O(1) LRU via HashMap + doubly-linked list, and the harder O(1) LFU via frequency lists plus a minFreq pointer. Eviction as a Strategy.
01Design an LRU and LFU cache — full class-level solution.Senior16Design a Pub/Sub System (in-memory)
SeniorNot started
Design a Pub/Sub System (in-memory)
Broker, topics, publishers/subscribers, concurrent delivery, delivery semantics, and backpressure — the in-memory precursor to Kafka.
01Design an in-memory pub/sub system — full class-level solution.Senior17Design a URL Shortener (LLD slice)
MidNot started
Design a URL Shortener (LLD slice)
Encoding strategies (base62 vs hash vs counter), the class model, and collision handling. Scaling is deferred to the HLD module.
01Design a URL shortener (class level) — full solution.Mid18Design a Notification System
SeniorNot started
Design a Notification System
Channel abstraction (Email/SMS/Push/InApp), templates, retry policy, and channel fallback via Chain of Responsibility.
01Design a notification system — full class-level solution.Senior19Design a File System (in-memory)
SeniorNot started
Design a File System (in-memory)
The Composite-pattern problem: directories contain files and directories. mkdir/touch/ls/cd/rm/mv/cp over an in-memory tree.
01Design an in-memory file system — full class-level solution.Senior20Design a Stopwatch / Task Scheduler
MidNot started
Design a Stopwatch / Task Scheduler
Clocks, timers, scheduled tasks, and scheduling strategies (FIFO, priority, cron) with tasks modeled as commands.
01Design a task scheduler / stopwatch — full class-level solution.Mid21How to Practice LLD
MidNot started
How to Practice LLD
How many problems to solve, the internalizable template, 45-minute time-boxing, common mistakes, and how to signal senior.
01How many problems, what template, and what practice schedule gets you ready?Mid02How to time-box 45 minutes and signal senior-level depth.Senior