AlgoViz

Mid, senior and staff

easy 30 min

The question is the same for everyone.

Video lesson · Chapter 1 of 5

The same burst, different depth

0:00 / 4:07

One question, three levels

1:25Reel coming soon

Theory

Read or listen first. About 1 min.

What it is

A level describes how much responsibility a role carries. Mid, senior and staff are common names. The same prompt is judged differently for each.

The difference is in depth, initiative and how far you look ahead, not in using more boxes.

Why it exists

Knowing what is expected helps you prepare the right thing. A mid-level candidate should finish a sound design. A staff candidate should reshape the problem.

It also helps when a company offers a different level from the one you expected.

A short history

  1. Middle Ages

    Craft guilds in Europe recognise apprentices, journeymen and masters.

  2. 1980

    Stuart and Hubert Dreyfus describe five stages of skill, from novice to expert.

  3. 2000s onwards

    Technology companies build ladders that let engineers grow without becoming managers.

Words to know

Scope
How much of the problem is yours.
Initiative
How much you lead without being asked.
Down-levelling
Being offered a lower level.
Ladder
A company's written levels.
Influence
Getting things done through others.

How it works

Step through the idea, or press Play.

Step 1 of 3

Mid. Builds a correct design and explains it

Understand it

Start here

Three people on one mountain

A walker, a guide and an expedition leader can stand on the same path. They are asked the same thing: get to the top. They do different jobs.

The walker, the guide and the leader
WalkerGuideLeaderOne mountain

Compare

Depth, initiative, explanation

MidSeniorStaff
ScopeAsks what it must doProposes scope and targetsAsks why, and makes it smaller
DesignCorrect and completeEach part tied to a targetRoutine parts in seconds
DepthOne part, when askedTwo parts, unpromptedThe crux, early and long
ChoicesTwo options, one reasonReason, cost, triggerAdds reversing and migrating
FailureWhat if this box is downWhere the load goesHow we notice and who acts
Who leadsCandidate, with helpCandidateTwo colleagues
ExplainingHow each part worksWhy this partOnly what is not obvious

Each level keeps the one below

Skipping a step is the usual fall. Talk of rollout does not rescue a design that double books.

Time

Where the minutes go

PhaseMidSeniorStaff
Scope545
Numbers533
API and data542
Design1095
Deep dives152025
Wrap-up555
Planning guides for 45 minutes, not a rule from any company. The first column is our standard plan.

They all add up

5+5+5+10+15+5=4+3+4+9+20+5=5+3+2+5+25+5=455+5+5+10+15+5 = 4+3+4+9+20+5 = 5+3+2+5+25+5 = 45
Higher levels do not skip phases. They finish the ordinary parts faster, so more air is left for the hard part.

How much to explain

  • Mid: explain how

    "A load balancer spreads requests over three copies." Show that you know the parts you draw.

  • Senior: explain why

    "Three copies, so that two can carry the peak." The part itself needs one word.

  • Staff: explain what is not obvious

    "Stateless, the usual." Then straight to the risk that nobody else would list.

Problem 1

Seat booking: the rush at 9:00

The prompt: 5,000 readers want 80 seats when booking opens. What do you do?

Mid

  1. You

    The booking service writes to one database. A unique rule on seat and slot means the second reader is refused. Reads of the map come from a cache that is two seconds old.

  2. Interviewer

    And when all 5,000 arrive?

  3. You

    Most writes will fail, which is correct but is a lot of load. I could run more copies of the service. The database may become slow, so I would put the requests in a line and let them through at a rate it can serve.

Senior

  1. You

    Correctness first: a unique rule decides. The crux is load. At least 4,920 of 5,000 must be refused, so I put a waiting room in front that admits about 200 a second. That clears the line in 25 seconds. It costs one more part and some waiting. If the waiting room fails, the service admits a fixed number and turns the rest away with a time to retry.

  2. Interviewer

    Is that fair?

  3. You

    First come favours fast networks. I would shuffle everyone who arrived before nine. The trigger to drop all this is a building with more seats than readers.

Staff

  1. You

    Before I build for a rush, why is there one? If everything opens at nine, we made the rush. I would ask the libraries about opening in waves by building, or a draw overnight. A draw needs no waiting room and is fairer.

  2. Interviewer

    They insist on nine o'clock.

  3. You

    Then the waiting room, as small as possible. I would launch in two buildings, watch refused bookings and waiting time, and switch it on by building with a flag, so we can go back in a minute. The weak point is support: staff at the desk need to know what a reader sees. I would agree that before launch.

Problem 2

URL shortener: unique codes

MidSeniorStaff
Says"Count up and encode in base62.""Lease a million numbers per server, scramble, encode.""Do codes need to be short, or hard to guess? That decides it."
NumberSeven characters is about 3.5 trillion182.5 billion links in five years is about 5% of thatOne lease covers a million creates, so the coordinator barely matters
Failure"Two servers could clash, so check on insert.""A crash wastes the rest of a range. Fine.""A restored backup could hand out old ranges. The conditional write must stay."
BeyondA custom aliasMulti-region claims go to one home regionHow to change code length later without breaking printed links

The same sum, used three ways

627≈3.5×1012,182.5×1093.5×1012≈5%62^7 \approx 3.5 \times 10^{12}, \qquad \frac{182.5 \times 10^9}{3.5 \times 10^{12}} \approx 5\%
Assumes 100 million new links a day for five years. Mid works it out, senior uses it to judge retries, staff uses it to plan the day codes grow to eight characters.

Problem 3

School bus tracker: private positions

MidSeniorStaff
First moveSign-in, then show the bus"The worst failure is a stranger seeing a stop, so access comes before speed.""Which laws and school rules apply, and who approves access?"
DesignCheck that the parent has a child on that busCheck on every read; keep only the latest position; short-lived linksStore as little as possible: no history unless the school asks
Failure"Deny when the check fails.""If the access service is down we refuse. A late bus is better than a leak."Alerts on odd viewing, an access log, and a way to cut off one account
Cost namedSlower readsA wrong refusal at 7:45; a phone number to callSupport load, school training, an audit each year

Prepare

What to practise

ForBuildPractiseProof you are ready
MidThe parts: database, cache, queue, load balancer, and when each is neededFinish a whole design in 25 minutesA friend can redraw it
SeniorFailure drills, races, consistency per operationTwo deep dives without being askedYou give the cost before they ask
StaffMigrations, rollout, cost, ownership, stories from your own workMaking a prompt smaller in three minutesYou can say what you would not build, and why

One exercise for all levels

  1. 1

    Answer a prompt at your current level

    Record it. Twenty-five minutes.

  2. 2

    Listen once

    Count three things: numbers used, costs named, times you led.

  3. 3

    Answer again, one level up

    Only the deep dive. Add cost and failure, or rollout and reversing.

  4. 4

    Keep what was real

    Drop anything you could not explain if asked twice.

Moved

Down-levelled and up-levelled

Interviewers may decide that your answers fit a different level from the one you applied for. It is a judgement about one day's evidence, not about you.

If the level moves down

Why it moves downWhat they sawWhat to change
Waited to be ledGood answers, no next stepOffer the next step after each answer
Stayed broadMany boxes, no decisionTwo dives that end in a choice
No costsEvery option was goodName the price first
Skipped the basicsRollout talk, broken main pathMake it correct, then widen

Asking about it

  1. You

    Thank you for the offer. I applied at senior and this is mid. Could you share which signals were missing in the design round?

  2. Interviewer

    The design was sound. You needed prompting for failure cases.

  3. You

    That is fair and useful. Is another design conversation possible? If not, I would like to understand what the step to senior looks like in this team.

Moving up is rarer and happens when someone leads, decides and looks after consequences without help. If it is offered, ask what the first six months would expect of you. A higher title with a role you do not want is not a win.

Stop

What to stop doing

Start

  • Mid: naming the hard part yourself
  • Mid: finishing before polishing
  • Senior: breaking your own design
  • Senior: saying what is not needed
  • Staff: leaving obvious parts unexplained
  • Staff: asking what happens if we do nothing

Stop

  • Mid: waiting for the next question
  • Mid: adding parts to look advanced
  • Senior: reciting how a cache works
  • Senior: answering every hint with a new box
  • Staff: ten minutes on endpoints
  • Staff: opinions with no number and no test

Which level did that sentence sound like?

Going up a level in one answer

Summary

The whole topic in one minute.

Mid shows a complete design, senior leads and goes deep, staff shapes the problem and its consequences.

Explain less of the basics and decide more as the level rises.

  • Same prompt, different job: solve it, lead it, shape it.
  • Each level keeps the one below. Correct comes first.
  • Higher levels spend less time on ordinary parts and more on the crux.
  • Explain how, then why, then only what is not obvious.
  • If you are moved, ask which signals were missing.

Sources