One process, up close: objects, interfaces, concurrency, and the classic LLD problems worked end to end.
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.
A fast refresher of the object-oriented basics every LLD round assumes — classes, encapsulation, abstraction, inheritance, polymorphism — with one small running example and the sentence to say for each.
The handful of object-oriented ideas an LLD interview actually tests — what an object is for, why you should hold objects rather than inherit from them, and where interfaces belong.
The small slice of UML an LLD round actually uses — the box, the five lines between boxes, multiplicity — and how to draw one on a whiteboard in five minutes without it turning into a poster.
The five principles as they're actually used in an interview — the problem each one fixes, a small before-and-after, and the sentence that earns the point.
The warning signs an interviewer spots in a design — the god class, the switch on type, money as a double, the method that reaches through three objects — and the small, named refactoring that removes each one.
The eleven design patterns that cover almost every LLD interview — what problem each one solves, the smallest useful example, and the phrase in the question that should make you reach for it.
What to do minute by minute in an LLD round — requirements, entities, relationships, interfaces, a walkthrough, and the "now add a feature" question that decides the result.
The follow-up you will definitely get — which data is shared, what rule a collision would break, and the four techniques that answer almost every version of the question.
The most-asked LLD question, worked end to end in the 45-minute structure — classes, allocation, pricing, the threading answer, and the four extensions interviewers really ask for.
The state-machine problem — two kinds of request, a lift that only moves in legal ways, a swappable rule for choosing which lift answers, and one thread per car.
The money problem — expenses, split rules that must add up exactly, who owes whom, and a small greedy algorithm for settling a group with the fewest payments.
The data-structure flavoured round — an LRU cache with O(1) reads and writes, eviction and expiry behind interfaces, and how to make it thread-safe without one big lock.
The state-machine problem with money in it — choose, pay, dispense, give change — where the real test is never losing a coin, knowing before you sell whether you can make change, and keeping illegal moves impossible.
Card, PIN, choose, dispense — a state machine that talks to a bank over an unreliable link, where the hard part is the moment the account has been debited and the cash hasn't come out yet.
The entities-and-rules problem — a title versus its copies, loans with due dates, a fair queue for reserved books, fines that follow a swappable rule, and making sure one copy is never lent twice.
Levels, named loggers that inherit settings, pluggable destinations and formats — and the two things that separate a toy from something you'd ship: logging must never slow the app down, and must never crash it.
The observer problem done properly — rules that watch numbers, an alert lifecycle that doesn't flap, notifications fanned out to email, SMS and chat without one slow channel holding up the rest, escalation when nobody answers, and no duplicate pages.
The friendliest LLD problem — a board, players, a die and a turn loop — used to test clean modelling, rules you can swap, a die you can fake in tests, and one insight that shrinks the design: a snake and a ladder are the same thing.
The hardest of the game problems — pieces that each move their own way, a board, the one rule that makes legality simple (a move is legal only if your own king is safe afterwards), check, checkmate and stalemate, the three special moves, and undo.