Skip to content

Lesson 31 of 32Landing the job

Mock Interviews and a Prep Plan

Run mock interviews as candidate and interviewer with a real rubric, then follow a 4, 8 or 12 week plan mapped to RazorCode lessons and tools.

17 min read0/5 questions

Most people who fail a loop did not fail for lack of knowledge. They solved plenty of problems alone, on a quiet evening, with the run button and no one watching, then froze when a stranger watched them type. A mock interview is the only practice that recreates the real conditions: a clock, an audience, and a score at the end. This lesson shows you how to run mocks properly from both chairs, how to score them, and how to fit everything into a 4, 8 or 12 week plan that points at specific lessons and tools on this site.

Why solving alone is not enough

Solving a problem and passing an interview are different skills that share some parts. On your own you can sit in silence for ten minutes, rerun your code twenty times, and peek at the pattern label. In the real round none of that works. You have to think and talk at the same time, decide without feedback, and write code you cannot run on some platforms.

Three things only show up under observation:

  • Narration gaps. You go quiet exactly when the thinking gets hard, which is when the interviewer most needs to hear you. As you saw in How Interviews Work, what you do not say does not reach the written feedback.
  • Time blindness. Alone, a medium takes "about half an hour". Under a real clock you discover you spent 14 minutes on the brute force.
  • Recovery. Interviews reward how you handle a wrong turn or a hint. You cannot practice taking a hint from yourself.

The other reason mocks matter is feedback against a rubric. "That went fine" is useless. "Problem solving 3, testing 1, you never traced your code" tells you exactly what to drill next week.

Where to get mocks

You need a mix, because each source is good at different things.

SourceGood forWeak at
A peer (friend, classmate, colleague) with a shared rubricVolume, swapping roles, freeCalibration: a peer may be too kind or too unsure to score
Peer-matching platforms (for example Exponent Practice, which absorbed Pramp's peer mocks in 2024)Strangers, which feels closer to the real thingYour partner's interviewing skill varies a lot
Paid mocks with working engineers (for example interviewing.io)Calibrated scoring from people who interview for realCost, so save them for the last third of your prep
Recording yourself solving on videoHearing your own filler, silences and ramblingNo one asks follow-ups
AI mock interviewersUnlimited drill, behavioral follow-ups at midnightCalibration: they tend to be generous and may accept wrong complexity claims
RazorCode's timed mock on the Interview prep pageA cold problem (or two) under a clock, any time, then a self-scored debrief on the rubric belowNo human on the other side, so you must narrate to an empty room and score yourself honestly

Platforms and their offers change often, so check what each one currently provides before you pay. A good rule: drill with the cheap sources, calibrate with humans who interview professionally.

Quick check
You have done ten mocks with an AI interviewer and scored 'hire' in all of them. What is the main risk?
Need a nudge? A hint rules out a wrong answer.

Running a coding mock as the candidate

Book 60 minutes: 45 minutes of interview and 15 minutes of feedback. Treat the 45 as real.

  1. Set up like the real thing. Same editor the company uses if you know it (a plain shared editor if not), camera on, notes closed, autocomplete off.
  2. Do not pick the problem. The interviewer picks it. If you are alone, the timed mock picks problems you have not solved and hides the pattern label, the hints and the solution until the clock stops.
  3. Run the playbook. Clarify, examples, brute force, optimise, code, test, complexity, exactly as in The Coding Interview Playbook. The mock is where the playbook becomes a habit.
  4. Talk the whole time, including when stuck. "I am looking for repeated work in this loop" is a fine sentence.
  5. Write down your own score before you hear theirs. The gap between how you felt and how you did is the most useful number you will collect.

Running it as the interviewer

Be the interviewer as often as you are the candidate. Watching someone else go silent for four minutes teaches you why it hurts, and filling in a rubric teaches you what earns points faster than any article.

Your job has four parts:

  • Prepare. Pick a problem the candidate has not seen, solve it yourself, and know two follow-ups ("what if the input does not fit in memory?", "now return all pairs").
  • Stay quiet but present. Answer clarifying questions with the real answer. Do not teach. A short "mm-hm" is enough.
  • Hint on a ladder. Wait about three minutes of real stuckness, then give the smallest hint that unblocks them, and write down every hint you give.
  • Take notes in time order. "12:30 named hash map, O(n). 19:00 off-by-one in loop bound, found it while tracing." Notes are evidence; your score comes from them, not from your mood.
The hint ladder
InterviewerCandidatestuck on O(n^2) for 3 minutesWhat work repeats in your inner loop?still stuckCould you remember values you have seen?a hash map of value to index!(writes: 2 hints, used them well)

Real stuckness, not a pause to think. Let them try first.

1/6

The scoring rubric

Use the same four rows big tech coding rounds commonly use, each scored 1 to 4. Agree on the rubric before the mock, so the candidate knows what is being measured.

Row1 (strong no)2 (lean no)3 (hire)4 (strong hire)
Problem solvingNo working approach, even with hintsBrute force only, or optimal with heavy hintsReached a good approach with at most a small hint, explained the trade-offOptimal quickly, compared alternatives, handled follow-ups
CodingCould not turn the idea into codeWorks partly, messy names, logic bugs found by the interviewerClean, correct code with minor slips they caught themselvesIdiomatic, well structured, no wasted lines
CommunicationLong silences, could not explainExplained only when askedNarrated throughout, checked in at decision pointsClear and structured, easy to take notes on
TestingNever testedRan the given example onlyTraced an example and an edge case, fixed what they foundChose tests deliberately, found their own bugs before the interviewer

Turn the four rows into one call with a simple rule: any row at 1 is a no hire, otherwise average the rows. That mirrors how real loops work, where one clear weakness outweighs strengths elsewhere. Run this with your own mock log to see which row is holding you back.

Pythonmock_log.py
ROWS = ["problem_solving", "coding", "communication", "testing"] def verdict(scores): """scores: dict of row -> 1..4. Returns the overall call.""" if min(scores.values()) == 1: return "No hire" # one clear failure sinks the round avg = sum(scores.values()) / len(scores) if avg >= 3.5: return "Strong hire" if avg >= 2.75: return "Hire" if avg >= 2.0: return "Lean no hire" return "No hire" mocks = [ ("wk3", "medium", 31, {"problem_solving": 2, "coding": 3, "communication": 2, "testing": 1}), ("wk4", "medium", 28, {"problem_solving": 3, "coding": 3, "communication": 2, "testing": 2}), ("wk5", "medium", 26, {"problem_solving": 3, "coding": 3, "communication": 3, "testing": 3}), ("wk6", "hard", 40, {"problem_solving": 2, "coding": 3, "communication": 4, "testing": 3}), ("wk6", "medium", 22, {"problem_solving": 4, "coding": 3, "communication": 4, "testing": 3}),] for week, diff, mins, s in mocks: print(f"{week} {diff:<6} {mins:>2} min {verdict(s)}") # Which row is holding you back? Average each row across all mocks.for row in ROWS: avg = sum(s[row] for *_, s in mocks) / len(mocks) print(f"{row:<16} {avg:.1f}") # Readiness: unseen mediums finished in 25 minutes or less, with a passing callfast = [m for m in mocks if m[1] == "medium" and m[2] <= 25 and verdict(m[3]) in ("Hire", "Strong hire")]mediums = [m for m in mocks if m[1] == "medium"]print(f"ready mediums: {len(fast)} of {len(mediums)}")
Output
Press Run (⌘ Enter) to see what happens.

Testing is the weakest row here, which is the most common finding in early mocks and the cheapest to fix: Testing Your Own Solution is one lesson.

Predict the outputPython

What does this print?

def verdict(scores):
  if min(scores.values()) == 1:
      return "No hire"
  avg = sum(scores.values()) / len(scores)
  return "Hire" if avg >= 2.75 else "Lean no hire"

print(verdict({"problem_solving": 4, "coding": 4,
             "communication": 4, "testing": 1}))
Need a nudge? Hints walk you through it.

Design and behavioral mocks

System design mocks need a partner who knows design, so trade: you run their coding mock, they run your design mock. Use the structure from The System Design Interview, pick a case study you have not read yet, and score four rows: requirements and scope, high-level design, depth on one or two components, and trade-offs. Draw on a shared whiteboard, not paper, because that is what you will use on the day.

Behavioral mocks are the most skipped and the cheapest. Take the stories in your story bank and say each one aloud to a partner. Three rules:

  • Time it. Two to three minutes per story, then stop and let them probe. Most first attempts run five minutes and bury the result.
  • The partner asks two follow-ups per story: "What would you do differently?" and "What did your manager think?" Follow-ups are where rehearsed stories fall apart.
  • Map each story to its themes (conflict, failure, ownership, ambiguity, influence) so you know which question each one answers. Behavioral Interviews by Level shows how the expected scope grows with seniority.
Put it in order6 steps

Put a well-run 60-minute coding mock in order.

  1. Tap the steps below in the right order.
Need a nudge? A hint shows where it starts.

Using RazorCode's tools

The site has six tools that fit into the plans below. Each has one job.

  • Practice: problems grouped by pattern, with filters for difficulty, status and three study lists: Essentials (the 75 problems of LeetCode 75), Sprint (the 150 of Top Interview 150) and Deep dive (both, plus about 20 problems for every pattern). Use the pattern view while learning a pattern. Once you have learned most of them, switch to "To do" plus a study list, so you stop seeing the pattern before you start.
  • Decoder: practices the part before typing (reading, budgeting, naming the pattern, planning). Use it on days with only 20 minutes.
  • Timed mock: pick a format, a phone screen (one problem, 45 minutes) or an online assessment (two problems, 70 minutes), and a difficulty. It opens problems you have not solved, with the pattern label, hints, Decoder and solution locked until time is up or you end the round. Narrate out loud as if someone is there. Then comes the debrief: tests passed, time used, the target complexity, your own scores on the four rows below, the verdict from the any-row-at-1 rule, and how a strong candidate would say the solution out loud. Your rounds and their trend stay on this device. This is your solo mock.
  • Interview prep: flashcard decks by topic (flip, then mark "Got it" or "Review again"; a card counts as mastered only after three right answers in a row, days apart), the behavioral prompts with model answers, and the story bank where you write your STAR stories, see which questions each story answers, and practise them against a timer. Stories save on this device only, so copy them somewhere safe too.
  • Your plan: enter your interview date, role, level, hours a week and language, and it lays out the weeks below day by day, with a Today list on the Interview prep page, a calendar file to export, and a readiness estimate. It is built from the same rules as the tables here, so treat it as a starting point and let your rubric scores override it.
  • Review: spaced repetition. Questions you miss in lessons, and terms you save from a lesson's glossary, come back after 1, 2, 4, 8, 16 and 32 days. A miss sends a card back to the start. Interview flashcards keep their own schedule inside each deck for now. Clear Review daily; it takes about as long as your coffee.

The cheat sheet is for the last week, not the first.

Pick your plan

Choose by the time you have, then adjust by level. The hours are weekly estimates; the week rows matter more than the exact hours. For the problem-solving method inside each week (time boxes, mistake logs, re-solving), follow Practice That Sticks.

12 weeks, about 7 hours a week (rebuilding foundations)

WeekLearnDoMocks
1Big-O, Arrays and Hashing, Reading the Problem8 easy problems in Practice; write 2 storiesnone
2Two Pointers, Sliding Window, Stack, Thinking Out Loud6 problems; start clearing Review daily1 peer mock as interviewer
3Binary Search, Linked Lists, Brute Force First6 problems; 2 more stories1 timed mock, easy
4Trees, Heaps, What Is System Design, Back-of-the-Envelope6 problems1 peer coding mock
5Graphs, Backtracking, Caching, Databases6 problems; Decoder twice1 timed mock, medium
6Dynamic Programming, Replication and Sharding, Message Queues5 problems; stories to 61 coding, 1 behavioral
7Greedy, Intervals, The System Design Interview5 problems; read URL Shortener1 coding
8The Pattern Map, Getting Unstuck, News FeedMixed "To do" mediums only1 coding, first design mock
9Weakest two patterns again, Chat App, Behavioral Interviews by LevelRe-solve your mistake log1 coding, 1 design
10The rounds your recruiter named: Online Assessments, Technical Phone Screen, Company-Specific Loops, SQL Interview Questions if the role uses SQLQuestion bank for your language1 paid or calibrated mock
11Project Deep DiveFull loop day: 2 coding, 1 design, 1 behavioral4 in one day
12Job Search and OffersTaper: Review, cheat sheet, 1 problem a day1 light mock early in the week

8 weeks, about 10 hours a week (the standard plan)

WeekLearnDoMocks
1Big-O, Arrays and Hashing, Two Pointers, Sliding Window, The Coding Interview Playbook10 problems; 3 storiesnone
2Stack, Binary Search, Linked Lists, Thinking Out Loud8 problems1 peer mock, both roles
3Trees, Heaps, Graphs, What Is System Design8 problems; stories to 61 timed mock
4Backtracking, Dynamic Programming, Caching, Databases8 problems1 coding, 1 behavioral
5Greedy, Intervals, The Pattern Map, The System Design Interview, URL ShortenerMixed mediums1 coding
6News Feed, Chat App, Behavioral Interviews by LevelRe-solve mistake log1 coding, 1 design
7Round-specific lessons (see week 10 above), one question bankMixed mediums, 25-minute cap2 coding, 1 design, 1 calibrated
8Job Search and OffersFull loop day early in the week, then taper4 in one day

4 weeks, about 15 hours a week (refresh, interview already booked)

This plan assumes you learned the patterns once before. It starts by measuring, not by studying.

WeekLearnDoMocks
1The Pattern Map, then only the pattern lessons your mocks exposeDiagnose: 3 timed mocks on mixed difficulty; stories to 61 peer, 3 timed
2The matching decode lessons, such as Decoding Trees and Graphs and Decoding DP and Greedy; The System Design Interview, 2 case studies12 mixed mediums1 coding, 1 behavioral
3The lessons for the rounds your recruiter named, plus Company-Specific LoopsMixed mediums, 25-minute cap1 coding, 1 design, 1 calibrated
4Cheat sheet and Review onlyFull loop day early, then taper4 in one day

Adjusting by level

LevelCodingDesignBehavioralAdd these
Junior / new gradabout 70%about 10%about 20%Object-Oriented Design Round if the company asks it; design mocks optional
Mid levelabout 55%about 25%about 20%One design case study a week from week 4
Senior and aboveabout 35%about 35%about 30%Senior and Staff Interviews, Project Deep Dive, Design Docs and RFCs for the language of trade-offs

These splits are a starting point, not a formula. Your rubric scores override them: if testing is your weakest row at week 4, testing gets the hours.

Quick check
Your onsite is in four weeks. You studied DSA last year but have not touched it since. What should week one look like?
Need a nudge? A hint rules out a wrong answer.

Tracking readiness

Stop guessing whether you are ready. Track four numbers in a simple sheet and look at them each Sunday.

SignalReady looks like
Unseen mediumsYou solve most of your last ten unseen mediums within 25 minutes, with tests, talking throughout
Coding mock scoresTwo or three human mocks in a row at "hire" or better, with no row at 1
Design mocks (mid and senior)Two passed in a row on case studies you had not read
BehavioralSix to eight stories, each under three minutes, covering conflict, failure, ownership, ambiguity and influence

These thresholds are reasonable targets, not official bars; companies do not publish theirs. The trend matters more than any single score.

Match the pairs0/5 matched

Match what your mock log shows to the best next step.

Choose an item, then its match on the other side.

The final week

The last week is for staying sharp, not for learning new patterns. Cramming DP the night before costs more in sleep than it adds in skill.

  • Early in the week: one full loop simulation, then nothing heavier than one problem a day.
  • Daily: clear Review, read your stories aloud once, skim the cheat sheet.
  • Logistics: test camera, mic and the platform link; know the time zone; have water and a pen. For in-person rounds, plan the journey and arrive early.
  • Recruiter check: confirm the round order and which languages are allowed. They want you to pass and will tell you.
  • Sleep: protect the two nights before. Tired working memory is exactly what a coding round tests.

After each real round, write a short note: what was asked, what went well, what scored badly. It becomes your plan for the next loop if this one does not work out.

That is the last lesson of Interview Prep. The wrap-up follows one application from the first resume to a signed offer, using everything in the course.

Key terms
mock interview
A practice interview run under real conditions: a clock, an observer, an unseen problem, and rubric-based feedback.
rubric row
One scored dimension of a round, such as problem solving, coding, communication or testing, usually on a 1 to 4 scale.
calibration
How closely a mock's scores match what real interviewers would give. Peers and AI are often less calibrated than professionals.
hint ladder
Giving the smallest useful hint first and escalating only if needed, while recording how many hints were used.
full loop simulation
Running several mock rounds back to back in one day to practice stamina and switching between round types.
taper
Reducing practice volume in the final days before interviews so you arrive rested and sharp.