Home › Blog › Coding interview with an AI interviewer

Coding Interview With an AI Interviewer: How to Prepare and Think Aloud

What changes when an AI runs your coding round, how your code and explanation may be judged, a narration script for each phase, an example and a practice plan.

To prepare for a coding interview with an AI interviewer, practice solving problems while narrating every step out loud: restate the problem, offer a brute-force idea, state your better approach and its complexity before you type, then test with a normal case and an edge case. An AI interviewer can't read your mind, and when a session is recorded or transcribed, your spoken reasoning is the only evidence of how you got to the code. This is a preparation guide: you take the real session yourself, and practice beforehand is where the improvement happens.

How a coding interview with an AI interviewer works

Coding rounds led by an AI are now part of some early screens. As of October 2026:

Beyond that, formats vary by platform and employer. You might solve a problem in an online editor while an AI voice asks questions, talk through how you'd approach code without running it, or complete a coding exercise after a spoken interview. Some set-ups run your code against test cases, some score how you explain it, and some do both. Before the day, check your invitation or ask the recruiter four things: which languages are allowed, whether code is executed, how long you have, and whether you'll be asked to explain your solution out loud.

What may be evaluated: your code and your explanation

Rubrics differ, so treat this as a checklist of what coding rubrics commonly cover, not any vendor's formula. The right column is what makes each area visible to a reviewer who only has your code and transcript.

AreaWhat reviewers may look forHow to show it out loud (example lines)
UnderstandingRestated constraints and sensible assumptions"Can the input be empty? I'll assume it can and return an empty list."
ApproachA plan before code, and awareness of alternatives"Brute force checks every pair, O of n squared. A hash map gets it to O of n."
CorrectnessCode that works, including edge cases"Let me trace the first example by hand before running it."
ComplexityAccurate time and space analysis"O of n time, and O of n extra space for the map."
Code qualityReadable names and simple structure"I'll call this seen: it maps each value to its index."
TestingFinding your own bugs"This breaks if the same number appears twice. I'll check before inserting."
CommunicationClear, ordered reasoning"I've got a working version. Now I'll test, then tidy up."

For the interviewer's side of the same checklist, see what to look for in a coding interview.

A think-aloud script for each phase

  1. Understand (one to two minutes). Restate the problem in your own words, name the input and output, and ask or state one assumption. "So I return the indices, not the values, and there's exactly one answer."
  2. Plan before typing. Give the brute-force idea in one sentence, then the better approach and its complexity. Saying the plan first means that even unfinished code shows a sound approach.
  3. Code in narrated chunks. Say what the next block does, then write it. "Now the loop: for each number, I'll check whether its complement is already in the map." Short bursts of quiet typing are fine.
  4. Flag silences. If you need a minute, say so: "I'm going to write the loop now; give me a moment." Mercor notes that extended silences may trigger its AI to interject, and other platforms may behave similarly.
  5. Test out loud. Trace one normal example step by step, then one edge case: empty input, one element, duplicates or negatives.
  6. Wrap up. Restate the final complexity and one improvement you'd make with more time.

If thinking aloud feels unnatural, our guide to practicing thinking out loud in coding interviews has drills that build the habit in about two weeks.

Tip: State complexity twice: once in your plan and once at the end. If your final code differs from the plan, the second statement shows you noticed.

Example: narrating a two-sum solution

Problem: given an array of integers and a target, return the indices of the two numbers that add up to the target. The narration below is an example we wrote to show the pattern.

Example narration: "Let me restate it: I get a list of integers and a target, and I return the two indices whose values add up to the target. I'll assume there's exactly one valid pair and I can't use the same element twice. The brute-force way checks every pair, which is O of n squared. A better way is one pass with a hash map from value to index: for each number, I check whether target minus that number is already in the map. If it is, I return both indices; if not, I add the current number. That's O of n time and O of n space. I'll write it in Python. ... Done. Let me test with 2, 7, 11, 15 and a target of 9. At index 0, I need 7, which isn't in the map, so I store 2. At index 1, I need 2, which is in the map at index 0, so I return 0 and 1. Edge case: the list 3, 3 with a target of 6. At index 1, the first 3 is already stored, so it returns 0 and 1, which is correct because I check before inserting. Final complexity is O of n time and space."

VersionWhat the transcript shows (example)What a reviewer learns
Before"Okay... so... I'll just use a hash map, I think. [six minutes of silence] Okay, I think that works."Almost nothing: no plan, no complexity, no testing, and no evidence of why a hash map
AfterRestated problem, one assumption, brute force and its cost, the hash map plan with O of n time, a traced example and a duplicate-value edge caseUnderstanding, approach, correctness, complexity and testing, each in quotable sentences

Common mistakes in AI-led coding rounds

Our full list of coding interview mistakes covers the general ones.

A one-week practice plan for coding with an AI interviewer

  1. Days 1 and 2: patterns. Review the core patterns on the free coding interview cheat sheet and check your complexity intuition with the Big-O complexity visualizer.
  2. Days 3 and 4: narrate. Solve two easy problems a day out loud, recording yourself. Play it back and check that each of the six phases is audible.
  3. Day 5: scored mock. Our free AI interview assistant includes a Mock Interview mode where you choose coding in the question mix and set your coding language. It reads each question aloud and scores your answer out of 10 with what to fix and a model answer. Coding questions never auto-submit, so you can take the time you need while you practice narrating. The free plan includes 15 minutes every day.
  4. Day 6: variety. Answer single coding and system design questions in the browser demo at /try, which has 145 real interview questions across 10 tracks, graded by AI.
  5. Day 7: full run. One timed problem, start to finish, narrated, then a rest.

Take the assessment yourself and follow the employer's rules — use CoPilot Interview to practice beforehand. If your round also includes spoken technical questions, read technical questions in an AI voice interview, and for platform-specific detail see our micro1 AI interview guide.

Rehearse the narration, not just the code

Mock Interview includes coding in the question mix, in your chosen language, and scores each answer out of 10 with what to fix, so thinking aloud feels normal before the round that counts.

Try a free AI mock interview

FAQ

Can an AI interviewer run a coding interview?

Yes, on some platforms. As of October 2026, micro1 lists a coding challenge for technical roles in its AI interview, and Mercor says some of its AI interviews are technical. The format, language options and whether your code is run depend on the platform and the employer.

Does the AI evaluate my explanation or just my code?

It depends on the platform. Some set-ups run code against test cases, some score your explanation from the recording or transcript, and some combine both. Assume both matter: working code shows correctness, and your narration shows understanding, approach and testing.

Which programming language should I use?

The one you can write fastest and most accurately, if the platform allows it. Check the invitation for the allowed languages, and practice in that language with the same kind of editor before the day.

What should I do if I get stuck?

Say where you are stuck and why, then fall back to a simpler working solution, such as brute force, and state its complexity. A correct slower solution with a clear explanation usually shows more than an unfinished clever one.

Can I use AI tools during an AI coding interview?

No. Do the session yourself and follow the platform's and the employer's rules. Mercor, for example, asks candidates not to use large language models to compose their responses. Use AI tools to practice before the interview, not during it.

How do I practice thinking aloud when I practice alone?

Record yourself solving easy problems and play the recording back. Check that you restated the problem, gave a plan and complexity before coding, tested out loud and wrapped up. A scored mock interview adds feedback on what to fix.