The LLD cheat sheet: principles, patterns and concurrency tools
This page is the last thing to read before an LLD round. It gathers the clock, the design principles, the building blocks in each language, the concurrency tools, the numbers and the red flags that every case study on this site uses. The page teaches nothing new. Every row links the page that explains it, and every number is copied from that page. The patterns have a page of their own, Patterns at a glance, so they are not repeated here.
In the days before the round, read this page once and mark the rows you could not have said from memory. On the day, read only the marked rows.
The clock
Every case study keeps the six steps of the LLD framework on the 45-minute clock from What the LLD round scores. The last row is the machine-coding round, which runs on a longer clock of its own.
| Step | Minutes | On the board when the step is done |
|---|---|---|
| 1. Clarify the requirements | 0–5 | 4–6 questions asked, and the scope said back as in, later and out |
| 2. Entities and relations | 5–9 | Each class named with what it owns and what it never does |
| 3. Class diagram | 9–15 | A box for each class the main call passes through, and one call walked through them |
| 4. Interfaces and signatures | 15–20 | What each method takes, returns and refuses, with a refusal as a named exception |
| 5. Core flow | 20–30 | The main operation coded in call order and run once out loud |
| 6. Extend | 30–43 | The new requirement with its files named first, then often concurrency |
| 6. Tests and wrap-up | 43–45 | The first tests named, and each edge case said with what the code does |
| Machine coding | About 15 to clarify, 90 to code and 15 to demo | One command running by minute 25–30 of the build, and the full sample input by 75 |