How to Prepare for a Technical Interview: Practice, Thinking Out Loud and Getting Unstuck
A practical guide to technical interviews: formats, a four week practice plan, phrases for thinking out loud, a six step coding method and tactics to recover when you get stuck.
Short answer
Prepare for a technical interview by learning the format you will face, reviewing core data structures and algorithms, and practicing timed problems out loud in a plain editor, then doing live mock interviews. Google, Microsoft and Amazon all say on their careers sites that interviewers want to see how you think: ask clarifying questions, state assumptions, plan before you code and test your solution. If you get stuck, say what you know, try a simpler version or a brute force answer, and use the interviewer's hints rather than going silent.
The short answer
A technical interview tests whether you can solve role related problems and explain your reasoning while you do it. The fastest way to improve is not reading more solutions. It is practicing the way you will be tested: timed, out loud, in a plain editor, with someone watching.
The large employers say this directly on their careers sites (all accessed November 30, 2026):
| Employer | What its official prep page says interviewers look for |
|---|---|
| "The interviewer will be looking to see the thought process versus the answer itself." Rephrasing questions, asking for clarity and taking a few moments to collect your thoughts are all fine. | |
| Microsoft | "We want to see not only what you know, but also how you think." Ask clarifying questions, state assumptions, come up with a plan before you implement, and test before you say "done." |
| Amazon | Write "syntactically correct code, no pseudo code." The main criteria are "scalable, robust, and well-tested code," and you should check edge cases and bad input. |
Formats and rules differ by company and by role, so treat this guide as a method and confirm the specifics with your recruiter.
Types of technical interviews
Most technical hiring processes mix several of these formats. Knowing which ones you face decides what you practice.
| Format | What happens | What is usually assessed | How to prepare |
|---|---|---|---|
| Technical phone or video screen | A 30 to 60 minute call with an engineer, often one or two coding problems in a shared editor | Basic problem solving, coding fluency, communication | Timed problems in a plain editor while talking |
| Online assessment | Timed problems on a platform such as HackerRank, sometimes with design or work style sections | Correctness and efficiency under time pressure | Practice on the same type of platform; read the instructions on tests and allowed tools |
| Live coding (onsite or virtual loop) | Several back to back rounds, each with a problem and discussion | Problem breakdown, clean code, testing, complexity | Mock interviews; the six step method below |
| System design | Design a service or system at a high level, then go deeper | Requirements gathering, tradeoffs, scalability, reliability | Review distributed systems concepts; practice talking through designs on a whiteboard tool |
| Take home assignment | A small project completed on your own time | Code quality, structure, tests, documentation | Treat it like production work; include a short README explaining decisions |
| Live debugging or code review | Find and fix bugs in existing code, or review a pull request | Reading unfamiliar code, systematic debugging, testing | Practice reading open source code and narrating hypotheses |
| Behavioral round | Questions about past work and how you handled situations | Collaboration, ownership, learning | Prepare stories with the STAR method |
Some concrete examples from employer pages, accessed November 30, 2026: Amazon says its SDE II online assessment gives you 90 minutes for two coding questions, followed by shorter system design and work style sections, and that its interview loop includes four 55 minute interviews, with at least one system design question. Microsoft describes "the short 45-minute interview round" and says you will use a third party coding tool where you can run and compile your code. If your process includes a timed test before any conversation, our guide to preparing for a skills assessment test covers that stage in more detail.
What to review: the fundamentals
You do not need to know everything, but you do need fluent command of the basics. Microsoft's technical interview page is unusually specific, and it is a good checklist even if you are not applying there:
| Area | What Microsoft's page lists |
|---|---|
| Algorithms | Know at least one n log n sorting algorithm, preferably two (for example quicksort and merge sort); recursion is a common pattern; be able to explain big O complexity |
| Data structures | Arrays and strings, queues and lists, linked lists, trees and tries, hash maps and hash sets, graphs; know when to use each and their pros and cons |
| System design | Distributed systems, service oriented and n tiered architecture, resiliency, high availability, auto scaling, replication, CAP theory, partitioning |
| Role specific | Machine learning, data science (statistics, probability) or networking topics, depending on the role |
Amazon's system design objectives give a similar picture of what a good design should show: practicality, accuracy, efficiency, reliability, optimization and scalability.
Map the job description against this list and rank each topic as strong, rusty or new. Spend most of your time on rusty topics that are likely to come up, not on obscure ones.
A four week preparation plan
Four weeks of steady practice is a realistic plan for someone who codes regularly. Stretch it if you are returning after a break or changing careers.
| Week | Focus | Daily or weekly target |
|---|---|---|
| 1 | Learn the process; review core data structures, sorting, recursion and big O | 1 to 2 easy problems a day, solved out loud; list your weak topics |
| 2 | Common patterns: two pointers, sliding window, hashing, trees, graphs (breadth first and depth first search) | 2 problems a day at medium level, timed at 30 to 40 minutes each |
| 3 | Mock interviews and system design (if relevant to your level) | 2 to 3 live mock interviews; 2 design sessions; keep daily problems going |
| 4 | Full simulations, behavioral stories, logistics | 2 full mock loops; prepare 5 to 6 stories; test your setup; rest the day before |
Keep a simple error log. For each problem you miss, write one line: what the key idea was and why you did not see it. Reviewing that log beats solving another twenty random problems.
Practice methods that actually work
Timed problems in a plain editor
Set a timer and solve problems in an environment that looks like the interview: a shared document or a basic editor without autocomplete. Amazon's prep page suggests getting comfortable coding without an IDE if you feel rusty. Microsoft's page puts it bluntly: "Practice, practice, practice. We can't overstate this enough."
Explain every solution aloud
Talk through problems even when practicing alone. Record yourself on a few of them and listen back. You will hear long silences, vague phrases like "and then I just do this," and places where you skipped a step. Those are exactly the habits interviewers notice.
Mock interviews with another person
A mock with a friend, colleague or peer practice partner is the closest thing to the real interview. Take turns as interviewer and candidate. Ask your partner to score you on problem understanding, communication, code quality, testing and composure, and to give one concrete improvement each time.
Review solutions properly
When you cannot solve a problem, read the solution, close it, then write it yourself from memory the next day. Understanding a solution and being able to produce it under pressure are different skills.
How to think out loud
Thinking out loud lets the interviewer follow your reasoning, give credit for good ideas even if the code is incomplete, and steer you if you drift. Google's guidance encourages you to explain your calls: "Are you making an assumption? Going deep instead of broad, or vice versa? Tell your interviewer that and explain why you're making that call."
Useful phrases for each stage:
| Stage | Example phrases |
|---|---|
| Understanding | "Let me restate the problem to make sure I have it right." "Can the input be empty? Can values be negative?" |
| Assumptions | "I'm going to assume the list fits in memory. Is that fair?" |
| Planning | "My first idea is a brute force approach that checks every pair. That's O(n squared). Let me see if a hash map gets it to O(n)." |
| Choosing | "I'm picking a queue here because I need to process nodes level by level." |
| Coding | "This loop builds the lookup table. Next I'll handle the case where the key is missing." |
| Checking | "Let me trace this with the example input before I call it done." |
| Wrapping up | "Time is O(n), space is O(n). With more time I'd handle very large inputs by streaming." |
Thinking out loud does not mean narrating every keystroke. Explain decisions, not typing. It is also fine to say, "Give me 30 seconds to think about this quietly," then share where you landed. Google explicitly says telling the interviewer you want a few moments to collect your thoughts is okay.
How to work through a coding question, step by step
Step 1: Restate the problem and ask clarifying questions
Repeat the task in your own words. Then confirm inputs, outputs, size limits and edge cases: empty input, duplicates, negative numbers, very large values. Microsoft's guidance is to ask clarifying questions for any ambiguities and come up with a plan before you implement. Google notes that many of its questions are designed to leave room for clarification.
Step 2: Work through an example by hand
Pick a small concrete input and solve it manually, out loud. This checks that you understood the question and often reveals the pattern you need. Write down one normal example and one edge case you will test against later.
Step 3: State a brute force approach, then improve it
Say the simplest correct solution and its complexity, even if it is slow. This shows you can solve the problem and gives you a fallback. Then ask yourself what work is repeated and whether a different data structure (a hash map, a heap, a sorted array) removes it.
Step 4: Agree on a plan, then write clean code
Summarize your approach in two or three sentences and check the interviewer is happy before coding. Then write real code in a language you know well. Microsoft says you will be asked to code only in the language you are strong in and not to use pseudocode; Amazon also asks for syntactically correct code. Use clear variable names and small helper functions.
Step 5: Test your code out loud
Trace your example through the code line by line, then try edge cases. Microsoft advises testing your solution before you say "done" and pointing out your corner cases; Amazon asks you to validate that no bad input can slip through. Finding and fixing your own bug is a positive signal, not a failure.
Step 6: Analyze complexity and discuss tradeoffs
State time and space complexity and explain where they come from. Mention what you would change for much larger inputs, limited memory or concurrent access. This is often where strong candidates separate themselves.
How to recover when you get stuck
Everyone gets stuck at some point. Interviewers care about what you do next. Microsoft's guidance says: "We don't expect you to know everything. When you get stuck or don't have experience with the subject matter, we encourage you to ask clarifying questions."
| Tactic | What to say or do |
|---|---|
| Say where you are | "I have a working brute force, but I'm stuck on getting below O(n squared). Let me think about what's repeated." |
| Go back to the example | Rework a small input by hand and look for the pattern you are missing |
| Simplify the problem | "Let me solve it for a sorted array first, then relax that." |
| Try a different data structure | Walk through hash map, stack, queue, heap and tree and ask which fits |
| Ship the simple version | "Let me code the brute force so we have something correct, then optimize." |
| Ask a targeted question | "Is it reasonable to assume the values are within a small range?" |
| Use hints well | Repeat the hint in your own words, then show how it changes your plan |
| Fix bugs systematically | Say your hypothesis, trace with a small input, and check one variable at a time |
| Watch the clock | Google says you are welcome to do a time check; if time is short, describe the rest of the solution clearly |
What not to do: go silent for minutes, argue with a hint, delete everything and start over without explaining why, or bluff about a concept you do not know. "I haven't used that in practice, but here's how I'd reason about it" is a much better answer than a confident guess.
Using AI to prepare, and why not during the interview
AI assistants can be useful prep tools: generating practice questions, explaining a concept you are rusty on, reviewing your code after you finish, or acting as a mock interviewer for system design. Use them to check your work, not to replace the practice of solving problems yourself, because you will not have them in the room.
Employer rules on live use are clear where they are stated. Google's interview tips page says it is looking for your thoughts, "not the collective thoughts of the internet, your friends, AI, etc.," and that Google Search and AI "are not permitted to be used during your interviews" (accessed November 30, 2026). If a take home assignment or assessment does not state its AI policy, ask your recruiter in writing before you start.
Virtual technical interviews: setup checklist
Many technical screens and loops happen over video. Google recommends a quiet area with reliable internet, checking your mic, video and Wi Fi, and having a notebook and pen or pencil ready. Microsoft invites candidates to request accommodations if a virtual platform is not fully accessible to them.
| Check | Why it matters |
|---|---|
| Test the exact coding tool or link beforehand | Avoids losing minutes to logins or unfamiliar layouts |
| Close notifications and extra tabs | Prevents distractions and any suggestion of outside help |
| Paper and pen nearby | Sketching trees, graphs and examples is faster by hand |
| Stable camera position, good light | Interviewers can read your reactions and stay engaged |
| Backup plan | Have your phone ready and the recruiter's contact details if the connection drops |
Our guide on how to prepare for a video interview covers lighting, audio and backgrounds in more depth.
Common technical interview mistakes
- Coding before understanding. Jumping straight in often means solving the wrong problem.
- Silence. The interviewer cannot credit reasoning they cannot hear.
- Pseudocode when real code is expected. Check the format; Amazon and Microsoft both ask for real code.
- Skipping tests. Saying "done" without tracing an example misses easy bugs.
- Memorizing instead of understanding. Interviewers often change one constraint to see if you can adapt.
- Ignoring the behavioral rounds. Amazon says a significant portion of the conversation focuses on how you have demonstrated its Leadership Principles, typically two or three behavioral questions per interviewer.
- Neglecting questions for the interviewer. Google calls interviewing "a two-way street." Prepare a few questions to ask at the end of the interview.
If you are also facing business problem solving rounds, the structure in our case interview guide works well for open ended product and analytics questions. For more interview guides, see the interviews topic page.
Frequently asked questions
How long should I prepare for a technical interview?
Four weeks of regular practice is a reasonable baseline if you already code at work or school. Give yourself longer if you are returning after a break, changing careers or preparing for senior system design rounds. Consistent daily practice with feedback matters more than total hours.
How many practice problems should I solve?
There is no official number. Aim for breadth across common patterns and depth in understanding: being able to explain why a solution works and re solve it from memory a day later. A smaller set reviewed well beats a large set skimmed.
Which programming language should I use?
Use the language you know best, as long as the role allows it. Microsoft says you will be asked to code only in the language you are strong in. Confirm the accepted languages for any online assessment with the recruiter or the platform instructions.
Is it bad to ask the interviewer for a hint?
No. Google calls its interviews collaborative and encourages you to ask for clarification and question assumptions. Ask a specific question rather than "what's the answer," and show how the hint changes your approach.
What if I cannot finish the problem in time?
Make sure you have something correct, even a brute force version, and then clearly explain how you would finish or optimize it. A clear, partially complete solution with good reasoning often scores better than rushed code that does not work.
Can I use AI tools during a technical interview?
Assume not unless you are told otherwise. Google states that Search and AI are not permitted during its interviews. For take home tasks and online assessments, read the instructions and ask your recruiter if the policy is unclear.
Do I need to prepare for behavioral questions too?
Yes. Most technical loops include them, and Amazon, Google and Microsoft all recommend structured examples using STAR or a similar format. Prepare five or six stories about projects, conflicts, failures and learning.
Sources
- Interviewing at Google: Best practices, advice, and tips, Google Careers (2026)
- Technical interviews, Microsoft Careers (2026)
- Interview tips for all roles, Microsoft Careers (2026)
- SDE II Interview Prep, Amazon (amazon.jobs) (2026)
- Online Assessment Prep: Software Development Engineer II, Amazon (amazon.jobs) (2026)
Last reviewed . Found an error? Tell us.