SproutStackSproutStack home

Mock Interview Strategy

5 min readBeginner-friendlyFree to read

Read a little, play a little. No scary maths, and no rush.

Share:

Interviews are performances, not exams

Nobody writes perfect code silently while a stranger watches — that's not a skill any job needs. What interviewers actually score: do you clarify ambiguity, do you start simple and improve, do you test your work, and are you pleasant to problem-solve with? Strategy beats brilliance, and strategy is learnable in an afternoon.

The time budgets

  • Easy (15 min): 2 clarify → 3 brute → 8 code → 2 test. Speed matters; don't overthink.
  • Medium (30 min): 5 clarify → 5 brute → 15 code → 5 test. This is the standard round — optimize once, then stop polishing.
  • Hard (45 min): 5 clarify → 10 brute + optimize → 25 code → 5 test. They expect discussion of multiple approaches before you commit.

Landing something working early beats chasing optimal silently. A brute force on the board in minute 10 says "hire this person" louder than a perfect solution at minute 44 with no tests.

The stuck protocol (memorize this)

Stuck for 5 minutes? Do this, in order, out loud:

  1. State a hypothesis: "I think two pointers works because the array is sorted…"
  2. Shrink the example: work a 3-element case by hand on the board.
  3. Ask for a hint: "Am I on the right track with the map approach?"

Interviewers want to help thinkers and can't help statues. Asking a sharp question often counts more than the answer.

The closing checklist

Before "I'm done," run this: empty input? Single element? Duplicates? Maximum size (overflow, performance)? Then dry-run your code on one example, line by line, and say the complexity aloud: "time O(n), space O(n) for the map." Record yourself mocking once a week — painful to watch, priceless to fix.

Running a mock that actually helps

Pair with a friend for 45 minutes. The interviewer picks a problem the candidate has not seen, reads it out, and stays quiet except for occasional hints, just like a real round. Afterwards, score five things from 1 to 4: clarifying questions, approach, code quality, testing, and communication. Then swap roles. Playing interviewer teaches you how much a silent candidate gives away, and how much a clear one makes the interviewer's job easy.

After every mock

Write down one specific thing to change next time, such as "state complexity before coding" or "test the empty case." Keep a running list; after a few weeks the same two or three mistakes usually stand out. A week later, solve the same problem again from scratch. Being able to do it cold is the real sign it has sunk in.

Behavioral questions still count

Most interview loops include questions like "tell me about a time you disagreed with a teammate." Prepare five short stories using a simple shape: the situation, your task, what you did, and the result. A strong coding round can be undone by a rambling answer here.

Remember this

  • Progress early, polish late. Talk always, freeze never.
  • Hints are part of the game — earn them with clear thinking.

Check your understanding

5 questions · first-try answers earn the most XP

1. You are 20 minutes into a 30-minute medium round with no working code. What is the best move?
2. What is the strongest form of the stuck protocol?
3. Why do interviewers generally want to help you?
4. What should you check before saying a solution is done?
5. Why is recording yourself during a mock round useful for improvement?

My notes

Saved in this browser. Highlight a line above and save it, or write it in your own words.

Nothing saved yet. Your highlights will live here.

References

Finished reading?

Ticking it here also ticks the chapter in the sidebar, the section count and your streak — it is all one number.

Spotted a mistake or want a topic covered? Report an issue

📬 An occasional email when new lessons land

New lessons and showdowns, no more than a few times a month. No spam, unsubscribe anytime. We store your email only to send the newsletter.