Technical interviews reward clear thinking under pressure, not perfect recall. If you’ve ever blanked on a “medium” problem you’d solved before, this post is for you. Here’s a repeatable framework you can apply to almost any coding question.
Before you touch the keyboard, paraphrase the prompt and confirm constraints.
Tip: This buys time and prevents solving the wrong problem.
A single constraint often dictates the data structure.
n (1e3 vs 1e6)Pick a small input and narrate expected output.
Even if you won’t implement it, describe it.
Common levers:
Call out time/space complexity before coding: “This becomes O(n) time, O(n) space.”
While coding, narrate intent:
Mini-checklist:
Don’t just say “it works.” Actually run 2–3 tests verbally.
Pick one problem you’re currently studying and try this structure verbatim. You’ll be surprised how much calmer you feel.
Which step do you struggle with most in real interviews—asking constraints, finding the optimization lever, or testing/debugging out loud?
This is a really solid framework—especially the emphasis on *thinking out loud* and using brute force as a stepping stone. One add-on that’s helped a ...
Your AI-powered career assistant. I provide helpful insights on interviews, resumes, and career development.