SysDesignAtlas

The Three-Day Revision Plan

What an SDE-2 interview asks for, in plain terms, and an hour-by-hour plan for the two or three days you have left.

HLD + LLDEasy8 min readorientationrevisioninterviewsde2
Confidence

Two terms come up constantly here, so let's fix them first.

HLD is high-level design. You draw boxes — a web server, a database, a cache — and explain how they talk to each other over the network. The question sounds like "design Twitter for 100 million users".

LLD is low-level design. You stay inside one program and design the classes: what objects exist, what each one does, and how they fit together. The question sounds like "design a parking lot".

Same skill, different zoom level. This track is the LLD half; the HLD Bridge track next door covers the other half and the overlap.

#What the interviewer is actually grading

You have two or three days. That is not enough time to learn design. It is plenty of time to revise it.

The thing that separates a pass from a fail is rarely knowledge. It is whether you can produce a complete, sensible answer in 45 minutes while saying why you chose each thing. Here is the difference in practice:

A weaker answerThe answer that passes
RequirementsStarts drawing straight awayAsks a few questions first, says what's out of scope
StructureOne huge class, or one huge boxA few pieces, each with one clear job
Choices"I'll use Redis""Redis, because reads are 100× writes and slightly stale data is fine"
New featureRewrites thingsAdds a class
FailureNever mentions itSays what breaks and what happens next
ThreadsIgnoredSays which data is shared and how it's protected

Nobody expects a brilliant new architecture. They want a calm, complete, ordinary-but-well-argued design.

#The two zoom levels, side by side

HLD — between programs • Boxes are servers, databases, caches, queues • You talk about traffic, storage and delay • You produce an architecture diagram • Failure means a machine dies • "Split the data by user, cache the reads" LLD — inside one program • Boxes are classes and their methods • You talk about responsibilities and change • You produce a class diagram • Failure means two threads clash • "Pricing is an interface, so a new rule is a new class"
Most SDE-2 loops test both, sometimes in the same hour.

The most common mistake is answering at the wrong level: estimating traffic in an LLD round, or drawing class diagrams in an HLD round. HLD vs LLD shows you how to tell which one you're in within the first two minutes.

#The plan

Times are a guide. If you only have two days, drop Day 2 and fold its problems into Day 3.

#Day 1 — the vocabulary (about 4 hours)

You can't design classes fluently without the words for it. Get them back first.

TopicWhy now
60 minObjects, in practiceWhat an object is for, and when to use an interface
20 minClass diagrams, fastDrawing your design so the interviewer can follow it
45 minSOLID, in plain EnglishThe five ideas you'll narrate your design with
75 minThe patterns worth knowingStrategy, factory, observer, state — most of what appears
45 minThe LLD methodWhat to do minute by minute
30 minHLD refresher, first halfKeep the other muscle warm

Before you stop: without looking, write down the six steps of the LLD method, and the five SOLID letters with one example each. If you can't, redo the last hour instead of moving on.

#Day 2 — problems, out loud (about 4 hours)

Solving them isn't the point. Producing an answer under time pressure is. Set a 40-minute timer per problem. Talk out loud. Draw the classes on paper before you read the solution.

ProblemWhat it teaches
40 minParking LotThe standard way to break a problem into classes
40 minElevator SystemObjects whose behaviour depends on their current state
40 minSplitwiseHandling money and splitting it exactly
30 minThreads and racesThe follow-up question you will definitely get
45 minHLD refresher, second halfComponents and the choices between them

#Day 3 — the overlap, then taper (about 3 hours)

TopicWhy last
40 minSeat BookingOne problem asked at both levels
30 minIn-memory cacheA data-structure flavoured question, very common
30 minRate limiterThe same problem, both zoom levels
45 minRe-solve one Day-2 problem from scratchProves you can produce it from memory, not just nod along when you see it
30 minThe final checklistQuick recall, then stop

#More problems, for after the three days

Each is written to be answered in 40 minutes, in the same six steps. Pick by what you want to practise:

ProblemWhat it practises
Vending MachineA state machine with money in it — and the change-making trap
ATMKeeping a bank's ledger and a cash drawer in agreement through crashes
Library ManagementTelling a title from its copies; fair reservation queues
Logging FrameworkStrategy, decorator and a singleton you can defend — in code that runs on every request, so it must be fast
Alerting SystemThe observer pattern with its real-world problems: slow listeners, duplicates, storms
Snake and LadderA clean turn-based game, and making randomness testable
ChessPolymorphism that's genuinely useful (each piece moves differently), and the one rule behind every legal move

And one page for reviewing code rather than designing it: Code smells and refactoring.

#Three rules for practising

They cost nothing and almost everyone ignores them.

  1. Say it out loud. Understanding something and explaining it in order to a stranger are different skills. Only speaking closes the gap. Talk to a wall if you have to.
  2. Draw before you read. Look at the problem, close the page, spend ten minutes on your own class diagram, then compare. Reading solutions teaches you to recognise them. Drawing teaches you to produce them, which is what the interview asks for.
  3. Use a timer. Every problem here is written to be answerable in 40 minutes. If you take 70, you're practising something you can't use on the day.

#If you've already read the rest of this course

The HLD material in the Bridge track is a compressed version of Foundations, Building Blocks and the Appendix. If you know those, skim it and put the time into the LLD problems instead — that's the side most SDE-2 candidates under-prepare.

#Check yourself

HLD versus LLD in one line each?Show answer
HLD designs boxes between programs — servers, databases, caches, queues — and talks traffic, storage and delay. LLD designs the classes inside one program and talks responsibilities and change.
What earns points in a design interview?Show answer
A decision plus the reason for it. Five components you can justify beat ten you can't; a calm, complete, well-argued ordinary design passes.
What does a passing answer do that a weaker one doesn't?Show answer
Asks questions and states scope first, splits work into pieces with one job each, gives reasons for choices, adds a class for a new feature instead of rewriting, and covers failure and shared data between threads.
What is the most common level mistake?Show answer
Answering at the wrong zoom: estimating traffic in an LLD round, or drawing class diagrams in an HLD round.
Name the three rules for practising.Show answer
Say it out loud, draw your own design before reading the solution, and use a 40-minute timer.
What should the night before the interview look like?Show answer
Only the final checklist, then stop. New material doesn't stick that late and crowds out what you rehearsed; sleep is the better investment.

#What to carry forward

  • Two zoom levels: HLD is between programs, LLD is inside one. Identify which round you're in early.
  • Every point comes from a decision plus its reason.
  • Day 1 vocabulary, Day 2 timed problems out loud, Day 3 overlap and re-solve one from memory.
  • Producing beats recognising: draw first, read second, out loud, against a timer.
00:00
/ 8m