Part 2 of 7 · 1 min read
The five steps
One routine, the same every time.
A pilot uses a checklist, not memory, because the checklist works when the pilot is tired. The five steps are the checklist for an LLD round:
| Step | What happens | Minutes of 45 (made up) |
|---|---|---|
| 1. Requirements | Ask, write numbered rules, fix scope | 5 |
| 2. Entities | Nouns and verbs, a first class list | 5 |
| 3. Classes and links | Class diagram, key methods, where rules live | 12 |
| 4. Key flows | Code the main flow, draw a sequence if needed | 15 |
| 5. Edge cases and tests | List what can go wrong, test the main rule, answer a change | 8 |
The minutes will move with the prompt, but the order should not. Most failed rounds skip step 1 or run out of time before step 4.
Method (for an LLD round)
A method here is a fixed order of steps used for every question, so that no part of the answer is forgotten.
Example: always ask questions first, always list entities before writing classes, always finish the main flow before polishing.
Check yourself: 1. Which step gets the most time? 2. Which step do failed rounds usually skip? 3. Why use the same order every time?