AlgoViz

Running the 45 minutes

easy 30 min

A design interview is a conversation with a clock.

See it run

Follow the clock, ask in the right order, change phase out loud, and recover when you fall behind.

Operations

The clock

Six phases. Each ends with something written down.

Step 1 of 6

0:00 Scope

PhaseFromMinutesOn the board
Scope0:005features, targets
Numbers0:055
API0:105
Design0:1510
Deep dives0:2515
Wrap-up0:405

Three features, a few targets, what is out.

Step 1: 0:00 Scope

When
45 minutes
You leave with
A complete design

Write the start times in the corner of the board before you begin.

In the real world

The same running the 45 minutes doing real jobs. Pick one and step through it.

The extra 15 minutes go to design and deep dives.

Step 1 of 6

Scope

PhaseFromMinutesOn the board
Scope0:007features, targets
Numbers0:077
API0:146
Design0:2015
Deep dives0:3518
Wrap-up0:537

Seven minutes.

Step 1: Scope

Common mistakes

The bugs interviewers watch for, with the fix beside each.

  • Fifteen minutes on requirements

    critical

    There is no time left for a working design, the most common reason to fail.

    Wrong
    "And what about dark mode?"
    Right
    "I have enough to begin. I will ask more as I go."
  • Deep dive before the whole works

    critical

    A perfect cache in an unfinished system is an unfinished system.

    Wrong
    "Let me explain LRU first..."
    Right
    "I will note the cache and finish the main path."
  • Talking without pause

    major

    The interviewer has points to check and cannot get in.

    Wrong
    "...and also, and then, and also..."
    Right
    "That is the main path. Anything to dig into?"
  • No summary

    minor

    The last thing said is remembered best.

    Wrong
    "I think that's time."
    Right
    "To summarise: three decisions, one weak point."

Interview tips

  • Do

    • Check the time at 10, 25 and 40 minutes.
    • Keep the diagram visible.
    • Move on when stuck, and come back.
    • Announce each change of phase.
  • Do not

    • Spend 15 minutes on requirements.
    • Skip the numbers completely.
    • Deep dive before the whole is clear.
    • Forget the summary.
  • If they lead

    • Follow them: they are after a signal.
    • Answer, then say where you return to.
    • Adjust the plan out loud.
  • If they are silent

    • Check in after each phase.
    • Offer a choice of two deep dives.
    • Keep going with your plan.