Low-Level Design (LLD / OOD) Interview Questions & Answers — Cracked Java
Cracked Java console
0
S
Modules/Low-Level Design (LLD / OOD)
// MODULE · 21 TOPICS · 32 QUESTIONS

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.

0%
Reviewed
0 / 32
Topics done
0 / 21
Est. time left
~40h
Next up
The LLD Interview Framework
21 topics · tap to expand
01

The LLD Interview Framework

MidNot started
02

Design Pattern Quick Reference (Applied)

MidNot started
03

Concurrency Considerations in LLD

SeniorNot started
04

Design a Parking Lot

MidNot started

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.Mid
05

Design an Elevator System

SeniorNot started

Scheduling strategies (FCFS, SCAN, LOOK, nearest-car), elevator state machine, button commands, and multi-car controllers.

01Design an elevator system — full class-level solution.Senior
06

Design a Library Management System

MidNot started

Books vs book-items (copies), members, loans and reservations, fine calculation, and overdue notifications.

01Design a library management system — full class-level solution.Mid
07

Design a Vending Machine

MidNot started

The classic State-pattern problem: Idle / HasMoney / Dispensing / OutOfStock states, payment strategy, and inventory.

01Design a vending machine — full class-level solution (State pattern).Mid
08

Design a Tic-Tac-Toe / Chess Game

SeniorNot started

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.Senior
09

Design a Snake & Ladder Game

MidNot started

Board, snakes/ladders, dice strategy, players, and the turn loop — a compact warm-up problem.

01Design a snake & ladder game — full class-level solution.Mid
10

Design an ATM

SeniorNot started

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.Senior
11

Design a Movie Ticket Booking System (BookMyShow)

SeniorNot started

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.Senior
12

Design a Ride-Sharing System (Uber / Ola)

SeniorNot started

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.Senior
13

Design a Logger Library (like Log4j / SLF4J)

SeniorNot started

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).Senior
14

Design a Rate Limiter

SeniorNot started

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.Senior
15

Design an LRU / LFU Cache

SeniorNot started

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.Senior
16

Design a Pub/Sub System (in-memory)

SeniorNot started

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.Senior
17

Design a URL Shortener (LLD slice)

MidNot started

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.Mid
18

Design a Notification System

SeniorNot started

Channel abstraction (Email/SMS/Push/InApp), templates, retry policy, and channel fallback via Chain of Responsibility.

01Design a notification system — full class-level solution.Senior
19

Design a File System (in-memory)

SeniorNot started

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.Senior
20

Design a Stopwatch / Task Scheduler

MidNot started

Clocks, timers, scheduled tasks, and scheduling strategies (FIFO, priority, cron) with tasks modeled as commands.

01Design a task scheduler / stopwatch — full class-level solution.Mid
21

How to Practice LLD

MidNot started

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