Lesson 02

The 45 Minutes

Method

The round has a clock, and the clock is the part candidates misjudge. This course splits 45 minutes into four phases: Scope from minute 0 to 10, First Design from 10 to 20, Scaling It from 20 to 30, and Deep Dives and Curveballs from 30 to 45.

Each phase has an owner, an output that is on the board when it ends, and a cost when it runs over. The phases are a budget you keep, not a rule the interviewer enforces. Nobody stops you at minute 10, and nobody gives the minutes back at minute 40.

Four Phases, Four Outputs

Scope turns the question into agreed requirements, the two or three numbers that decide, and an API. The next three lessons take it apart: the questions, the estimates, and the calls and data.

First Design draws a design that is correct at small scale and walks one write and one read through it, hop by hop. It ends by naming where the design breaks, with the number at which it breaks.

Scaling It answers the interviewer's probes one at a time. Each probe gets a change, and each change gets its cost in the same breath (lesson 6).

Deep Dives and Curveballs takes the two or three hard parts the problem is known for, then absorbs changes of requirement as edits to the design already on the board.

Every problem chapter in the book has these four lessons in this order, and every problem overview carries the same map, so the clock is learned once and used twenty times.

The 45 minutes, phase by phase
Scopeminutes 0-10, you lead
→
First Designminutes 10-20, you lead
→
Scaling Itminutes 20-30, the interviewer leads
→
Deep Divesminutes 30-45, the interviewer leads

Who Leads When

Minutes 0 to 20 are yours. You ask, you agree, you draw, and the interviewer mostly answers and listens. A candidate who waits to be told what to do next in these minutes is spending them.

From minute 20 the interviewer leads. The probes are theirs, and in the deep dives they usually pick the ground, because they came in knowing what this problem tests. When they leave the order open, take the part with the most risk first. The URL shortener takes key generation first for that reason: a key handed out twice cannot be taken back.

The handover is a move of its own. At minute 20, name the first limit of your design, with its number, so the first probe lands where you expected it. Leading when it is your turn and following when it is theirs is itself something the interviewer sees, and it is one of the clearest differences between levels (lesson 7).

The Board at Minutes 10, 20, 30 and 45

A good check on the clock is what someone reading the board would find at each mark.

At minute 10: the requirements in a few lines, what is out of scope, the two or three numbers that decide, and the API calls. At minute 20: the first design, the path of one write and one read through it, and the first limit with its number.

At minute 30: the same design, with every change marked and its cost said. At minute 45: one or two parts taken deep, and each curveball as an edit to the design already there, never a second drawing.

What is on the board at each mark
Minute 10end of Scope
Requirements in a few lines. Out of scope. The two or three numbers that decide. The API calls.
Minute 20end of First Design
The first design. One write and one read traced through it. The first limit, with its number.
Minute 30end of Scaling It
The same design. Every change marked, each with its cost.
Minute 45end of the round
One or two parts taken deep. Each curveball as an edit, not a new drawing.

The marks are also when to look at the clock. A glance at minute 10 that finds you still asking questions is the cheapest moment to notice it, because there are still 35 minutes to absorb the overrun.

Behind and Ahead

Running over in Scope is the common failure, and it is paid for later, in the deep dives, where the hard parts of the problem are. Every minute past 10 comes out of the part of the round the interviewer most wanted to see.

When you are behind, drop the estimates that decide nothing, and state assumptions instead of asking for them: assume twice the average at peak, and move on. Never skip the first design to catch up. It is what every later minute pushes on. When you are ahead, do not fill the time with detail nobody asked for. Volunteer the next limit instead, which shows that you see where the design goes next.

Parking out loud is the tool for both. Name a hard part as parked, give it a name you will use again, and pick it up by that name when its phase comes. The interviewer hears that you saw it and chose when to take it, and the clock keeps moving. You might say: "Treat the ranking as a box for now. I'll come back to the ranking in the deep dives."

Practising With a Timer

Practice without a clock hides the one failure the clock causes: reaching minute 30 with the first design half drawn. Untimed, every phase feels as if it went well, because each one got all the time it wanted.

Set 45 minutes, work aloud, and write down the minute each phase ended. Every problem overview in this book closes its question card by asking you to set a timer and sketch your own answer first, for this reason. The full practice plan is the first lesson of Chapter 27.

The written minutes turn a vague sense of running long into a number you can act on. If Scope ended at 14 and every phase after it slid by the same four minutes, the deep dives began at 34 and had 11 minutes instead of 15. The next attempt knows exactly which phase to cut.

Misconceptions
  • "The interviewer will tell me when to move on." Some do and many do not. A candidate still asking questions at minute 15 has spent the deep dives' time, and nobody stopped them.
  • "Drawing the final design first saves time." It skips the first design, so the interviewer cannot see which box answers which requirement, and the probes have nothing left to push on.
  • "The deep dives are mine to choose." They are usually the interviewer's. Choosing for them when they have a topic in mind reads as not listening.
  • "Finishing early is a win." Spare minutes spent polishing detail show nothing new. Spent on the next limit, they show that you see where the design goes.
  • "Scope can be skipped when the question seems clear." A one-sentence question hides the numbers every later decision rests on, and a design without them is a guess the interviewer will ask about.
Why It Matters
  • Keep the four marks, 10, 20, 30 and 45, in mind, and check the clock at each one.
  • Hand the lead to the interviewer at minute 20 by naming your first limit, so the first probe lands where you expect.
  • Park a hard part out loud by name, and return to it by the same name.
  • Practise every problem against a 45-minute timer, and write down the minute each phase ended.
RelatedTaking a Probe what happens from minute 20A Practice Plan Chapter 27URL Shortener the same clock on a real problem

Knowledge Check

It is minute 20. What should someone reading the board find there?

  • The final design, with every cache, queue and partition already drawn
  • The requirements and numbers, with the first box about to be drawn
  • The first design, one write and one read through it, and its first limit
  • One part of the design taken deep, with its failure modes listed

Who usually chooses the ground for the deep dives, and what do you do when it is left open?

  • The interviewer; when it is left open, take the part with the most risk
  • You do; pick the part of the design you know best, to show the most depth
  • The interviewer; when it is left open, polish the parts already drawn
  • You do; work through the components in the order they were drawn

It is minute 13 and you are still in Scope. What do you drop to catch up?

  • The first design, going straight to the scaled design to save time
  • The API, since the interviewer can work out the calls from the design
  • The estimates that decide nothing, stating assumptions instead of asking
  • The out-of-scope sentence, since nothing is lost by leaving it unsaid

Why is the first design never skipped, even when you are behind?

  • It is the shortest phase, so skipping it saves the fewest minutes
  • The final design cannot be drawn until a simpler one has been erased
  • It ties each box to a requirement and gives the probes a target
  • It is the only phase in which you are expected to draw on the board

You name the ranking as parked and treat it as a box for now. What does that do for the clock?

  • It drops the ranking from the round, so its minutes go elsewhere
  • It hands the ranking to the interviewer to decide while you keep drawing
  • It lets you move on now and books the ranking, by name, for its phase
  • It marks the ranking as out of scope for the rest of the round

You got correct