Compile Ready
Learning/Low Level Design

Low Level Design — Machine Coding & OOD

A structured path through the object-oriented design interview — from OOP and SOLID foundations to machine-coding classics and expert systems. Every problem is a full walkthrough: requirements, an interactive UML class diagram, patterns, complete Java, a dry run, complexity, and follow-up questions.

56

Problems & concepts

56

Available now

5

Learning tiers

24+

Design patterns

6 categories · 14+ companies across 5 tiers · new problems added regularly

Your progress

0/ 56 completed

Recommended

Difficulty
Category
Pattern
Company

Concepts & Foundations

The vocabulary of object-oriented design — OOP, SOLID, design principles, UML, the pattern families, and concurrency. Master these before touching a problem.

10/10 available
Beginner Concept

OOP Fundamentals

Encapsulation, abstraction, inheritance, and polymorphism — the four pillars every LLD answer is built on.

ConceptsAmazonMicrosoft
30m Very High 99
Beginner Concept

SOLID Principles

The five principles (SRP, OCP, LSP, ISP, DIP) that separate a maintainable design from a brittle one.

ConceptsAmazonMicrosoft
35m Very High 98
Beginner Concept

Design Principles (DRY, KISS, YAGNI)

The pragmatic heuristics — DRY, KISS, YAGNI, composition over inheritance, and law of Demeter — that keep code lean.

ConceptsAmazonGoogle
25m High 90
Beginner Concept

UML for Interviews

Read and draw class, sequence, and state diagrams fast — the notation interviewers expect on the whiteboard.

ConceptsMicrosoftOracle
30m High 84
Intermediate Concept

Creational Patterns

Singleton, Factory, Abstract Factory, Builder, and Prototype — how to control object creation cleanly.

ConceptsSingletonFactory MethodAmazonMicrosoft
40m Very High 92
Intermediate Concept

Structural Patterns

Adapter, Decorator, Facade, Composite, Proxy, Bridge, and Flyweight — how to compose objects into larger structures.

ConceptsAdapterDecoratorAmazonMicrosoft
40m High 88
Intermediate Concept

Behavioral Patterns

Strategy, Observer, State, Command, Chain of Responsibility, and more — how objects collaborate and share responsibility.

ConceptsStrategyObserverAmazonGoogle
45m Very High 91
Advanced Concept

Concurrency & Multithreading

Threads, locks, atomics, thread-safe collections, and producer-consumer — making an LLD design safe under load.

ConceptsProducer-ConsumerObject PoolAmazonGoogle
45m High 87
Intermediate Concept

Java Collections for LLD

Pick the right List, Map, Set, Queue, or concurrent collection — and know the tradeoffs cold.

ConceptsIteratorAmazonOracle
35m Medium 82
Intermediate Concept

LLD Best Practices

A pragmatic checklist for machine-coding rounds — naming, immutability, error handling, testing, and time management.

ConceptsAmazonAtlassian
25m Medium 80

Beginner

Your first machine-coding rounds — small, self-contained systems (parking lot, ATM, vending machine, tic-tac-toe) that teach the design loop end to end.

7/7 available

Intermediate

Richer domains with more entities, state, and edge cases — elevators, caches, carts, and multiplayer games where patterns start to earn their keep.

14/14 available
Intermediate

Design an Elevator System

Multi-car scheduling, direction/state machines, and pluggable dispatch strategies under concurrent requests.

Core SystemsStateStrategyAmazonGoogle
55m Very High 94
Intermediate

Design an LRU Cache

O(1) get/put with a hashmap + doubly-linked list — the most-asked data-structure design in machine coding.

Advanced SystemsStrategyFacadeAmazonGoogle
40m Very High 97
Intermediate

Design Splitwise

Groups, expenses, and split strategies (equal/exact/percent) with a balance-simplification engine.

Core SystemsStrategyObserverAmazonUber
55m High 91
Intermediate

Design a Logging Framework

Levels, appenders, and a handler chain — a Chain-of-Responsibility showcase with async, thread-safe sinks.

Advanced SystemsChain of ResponsibilitySingletonAmazonMicrosoft
45m High 84
Intermediate

Design a Rate Limiter (LLD)

Token bucket, leaky bucket, and sliding window as interchangeable strategies behind one thread-safe interface.

Advanced SystemsStrategyFactory MethodAmazonGoogle
50m High 90
Intermediate

Design a URL Shortener (LLD)

The object model behind TinyURL — encoders, repositories, and expiry, without the distributed-systems layer.

Advanced SystemsStrategyRepositoryAmazonMicrosoft
45m Medium 82
Intermediate

Design a Movie Ticket Booking System

BookMyShow — theatres, shows, seat maps, and concurrent seat locking with a payment workflow.

Core SystemsStateStrategyAmazonFlipkart
55m High 89
Intermediate

Design a Hotel Management System

Rooms, rates, reservations, check-in/out, and housekeeping — a broad domain-modelling exercise.

Core SystemsStateStrategyAmazonAirbnb
55m Medium 76
Intermediate

Design a Shopping Cart

Cart items, pluggable discount/pricing rules, and a checkout pipeline with tax and coupons.

Real-world SystemsStrategyDecoratorAmazonFlipkart
45m Medium 80
Intermediate

Design a Digital Wallet

Accounts, balances, transfers, and a double-entry ledger with idempotent, atomic transactions.

Real-world SystemsStateCommandPayPalAmazon
50m Medium 83
Intermediate

Design an Inventory Management System

SKUs, warehouses, stock movements, and reorder rules with an event-driven low-stock notifier.

Real-world SystemsObserverStrategyAmazonFlipkart
50m Medium 74
Intermediate

Design Minesweeper

Grid generation, flood-fill reveal, flagging, and win/lose detection — a tidy board-game engine.

GamesStateStrategyAmazonGoogle
45m Medium 72
Intermediate

Design Ludo

Multiple players, tokens, dice, home paths, and turn/capture rules — multiplayer state modelled cleanly.

GamesStateStrategyAmazonFlipkart
50m Low 68
Intermediate

Design a Notification System

Multi-channel (email/SMS/push) delivery with templates, preferences, retries, and pluggable providers.

Advanced SystemsObserverStrategyAmazonUber
50m High 86

Advanced

Systems with real concurrency, pluggable strategies, and non-trivial invariants — schedulers, message queues, file systems, and booking platforms.

13/13 available
Advanced

Design Chess

Pieces, moves, check/checkmate, and rules — a polymorphism-heavy engine with per-piece move strategies.

GamesStrategyFactory MethodAmazonGoogle
60m High 88
Advanced

Design an LFU Cache

Least-Frequently-Used eviction in O(1) with frequency buckets — the harder cousin of LRU.

Advanced SystemsStrategyFacadeAmazonGoogle
45m Medium 81
Advanced

Design a Task Scheduler

Cron-like scheduling, priority queues, worker pools, and retry/backoff under concurrency.

Advanced SystemsCommandStrategyAmazonGoogle
55m High 85
Advanced

Design an In-Memory Message Queue

Topics, producers, consumers, offsets, and delivery guarantees — Kafka's object model in miniature.

Advanced SystemsProducer-ConsumerObserverAmazonLinkedIn
55m High 84
Advanced

Design an In-Memory File System

Directories, files, paths, and a Composite tree with ls/mkdir/read/write operations.

Advanced SystemsCompositeIteratorAmazonGoogle
50m High 83
Advanced

Design the Linux 'find' Command

Composable filters (name/size/type) combined with And/Or/Not — a Specification + Composite exercise.

Advanced SystemsCompositeStrategyAmazonGoogle
45m Medium 78
Advanced

Design a Text Editor

Insert/delete, cursor movement, and undo/redo via Command + Memento, with a gap-buffer document model.

Advanced SystemsCommandMementoGoogleMicrosoft
55m Medium 79
Advanced

Design an Airline Reservation System

Flights, fares, seat inventory, PNRs, and a booking/cancellation workflow with concurrency control.

Core SystemsStateStrategyAmazonOracle
60m Medium 73
Advanced

Design a Food Delivery System

Restaurants, menus, carts, orders, and delivery-partner matching — Swiggy/DoorDash object modelling.

Core SystemsStateStrategySwiggyAmazon
60m High 87
Advanced

Design a Cab Booking System

Riders, drivers, trip lifecycle, surge pricing, and nearest-driver matching — Uber/Ola in objects.

Core SystemsStateStrategyUberAmazon
60m High 88
Advanced

Design a Feature Flag Service

Flags, targeting rules, rollout percentages, and evaluation — a rules-engine + strategy design.

Expert SystemsStrategyChain of ResponsibilityAtlassianAmazon
50m Medium 77
Advanced

Design an Authentication Service

Signup/login, password hashing, sessions/tokens, and pluggable providers (password, OTP, OAuth).

Expert SystemsStrategyFactory MethodAmazonMicrosoft
55m Medium 80
Advanced

Design a Role-Based Access Control (RBAC) System

Users, roles, permissions, and resource-level checks with hierarchical roles and policy evaluation.

Expert SystemsCompositeStrategyAmazonMicrosoft
55m Medium 79

Expert

Staff-level object modelling for products at scale — payments, collaboration suites, chat platforms, drives, and AI systems, where extensibility is the whole point.

12/12 available
Expert

Design a Payment Gateway

Payment intents, provider adapters, idempotency, webhooks, and a saga for capture/refund flows.

Expert SystemsAdapterStatePayPalAmazon
70m High 90
Expert

Design a Banking System

Accounts, transactions, a double-entry ledger, interest, and statements with strong consistency.

Expert SystemsStateCommandPayPalAmazon
70m Medium 82
Expert

Design WhatsApp (LLD)

Users, chats, messages, delivery/read receipts, and group management — the messaging object model.

Expert SystemsObserverMediatorMetaAmazon
65m High 89
Expert

Design Slack (LLD)

Workspaces, channels, threads, mentions, and notifications — team-chat modelled with clean boundaries.

Expert SystemsObserverMediatorAtlassianAmazon
65m Medium 81
Expert

Design Google Docs (LLD)

Documents, collaborative editing, operational transforms/CRDTs, and version history modelled in objects.

Expert SystemsCommandMementoGoogleMicrosoft
70m High 86
Expert

Design Trello (LLD)

Boards, lists, cards, labels, and drag-drop ordering with activity feeds — Kanban in objects.

Expert SystemsCompositeObserverAtlassianAmazon
60m Medium 78
Expert

Design Jira (LLD)

Issues, workflows/state machines, sprints, and a flexible custom-field model with audit history.

Expert SystemsStateObserverAtlassianAmazon
65m Medium 80
Expert

Design Dropbox (LLD)

Files, folders, versioning, chunking, and sync-state modelling for a file-hosting client.

Expert SystemsCompositeObserverAmazonGoogle
65m Medium 77
Expert

Design Google Drive (LLD)

Files, folders, sharing/permissions, and search — a hierarchical storage model with ACLs.

Expert SystemsCompositeStrategyGoogleAmazon
65m Medium 79
Expert

Design an API Gateway (LLD)

Routing, middleware chains (auth/rate-limit/logging), and pluggable filters behind one entry point.

Expert SystemsChain of ResponsibilityStrategyAmazonNetflix
60m Medium 83
Expert

Design an AI Chat Platform (LLD)

Conversations, messages, model providers, streaming, tools, and context windows modelled in objects.

Expert SystemsStrategyAdapterMicrosoftGoogle
65m Medium 85
Expert

Design a RAG Pipeline (LLD)

Loaders, chunkers, embedders, a vector store, retrievers, and a generation step composed as a pipeline.

Expert SystemsStrategyTemplate MethodMicrosoftGoogle
65m Medium 84