What Mercor's AI interview asks when you explain past code, a six-part walkthrough on a worked example, and the follow-up questions to expect.
Mercor does not document a round called a "code walkthrough". Its help pages say some AI interviews are technical and "require deep discussion of prior experience", and the candidate reports we could open describe questions built from the projects on your resume. In practice, then, a Mercor code walkthrough means explaining code you have already written, out loud, and defending its decisions when the AI follows up. The structure that holds up best has six parts: what the code is for, where it starts, how data moves through it, one key decision, the trade-off that decision made, and what you would change now.
What Mercor documents, and what candidates report
The shared facts are short. Mercor's AI interview usually takes about 20 minutes, runs in a desktop browser with Chrome recommended, may require sharing your entire screen, and allows up to three retakes that hiring managers can see. The overview of the Mercor code review session covers the format in more depth, and the complete Mercor AI interview guide covers everything outside the technical questions.
Three documented details matter specifically for a walkthrough. Some interviews include a whiteboard that saves automatically, so you may be able to sketch your data flow instead of describing it in the air. Long silences can make the AI interject, and Mercor's own tip is that you can tell it you were not finished, which matters because a walkthrough is the longest answer you will give. Finally, Mercor's LLM usage policy, which covers submissions, assessments and interviews, bans using a language model to provide justifications or explanations for writing purposes and to predict code behaviour or runtime results. A walkthrough is made of your own reasoning, so it has to be yours. The policy also says evidently AI-produced submissions will be flagged; our article on how Mercor handles AI-written answers goes into that.
The candidate accounts point the same way. A May 2024 account on GeeksforGeeks describes questions about the candidate's internship and projects, followed by technology questions such as which database they used in personal projects and why. A September 2025 account on Taro from a software engineer reports being asked to describe their project and the challenges they faced building it, alongside system design questions. Neither describes being handed unfamiliar code to explain. If a later human round or a separate assessment does show you someone else's code, the order below still works, but you are then doing a review, which the code review session overview linked above walks through.
The six-part walkthrough structure
Each part answers a question a listener would otherwise have to ask, which keeps the AI's follow-ups for depth rather than for basic orientation.
- Purpose. Say in one sentence what the code does and for whom, before any technical detail, so every later sentence has something to attach to.
- Entry point. Name the function, endpoint or job where execution starts, because "it starts in send_all" orients a listener faster than a list of files.
- Data flow. Follow one input from arrival to output, naming only the components it actually passes through.
- One key decision. Pick the choice that shaped the code most and explain it properly, rather than touching on every library you used.
- Trade-off. State what that decision cost you, such as memory, simplicity or a scaling limit, before the interviewer finds it.
- What you would change. End with the improvement you would make today and why, which shows judgement and hands the interviewer a natural next question.
The first pass should be short enough that the interviewer can steer. Mercor does not set a length for any single answer, but with roughly 20 minutes for the whole interview, a first pass of about two minutes leaves room for the follow-ups, which is where the interview moves past anything you rehearsed.
A worked example (illustrative)
The project below was written for this page to show the structure; it is not a Mercor question or a real candidate's code. It is a small rate limiter for a background job that sends messages through a third-party API which allows a fixed number of calls per second.
import time
from collections import deque
class SlidingWindowLimiter:
"""Allow at most `limit` calls in any `window`-second span."""
def __init__(self, limit, window, clock=time.monotonic):
self.limit = limit
self.window = window
self.clock = clock
self.calls = deque() # timestamps of recent calls, oldest first
def wait_time(self):
now = self.clock()
while self.calls and now - self.calls[0] >= self.window:
self.calls.popleft()
if len(self.calls) < self.limit:
return 0.0
return self.window - (now - self.calls[0])
def acquire(self, sleep=time.sleep):
delay = self.wait_time()
while delay > 0:
sleep(delay)
delay = self.wait_time()
self.calls.append(self.clock())
def send_all(messages, send, limiter, sleep=time.sleep):
results = []
for msg in messages:
limiter.acquire(sleep)
results.append(send(msg))
return resultsWe ran it in Python 3 with a fake clock and a sleep function that advances it, a limit of three calls and a one-second window. Seven messages went out at 0, 0, 0, 1, 1, 1 and 2 seconds, which is the behaviour the walkthrough claims.
Here is the walkthrough spoken aloud, with each part of the structure in order:
"This is the throttle for our notification job. The provider allows three calls per second and rejects anything over that, so the job has to pace itself. Execution starts in send_all, which loops over the queued messages and calls acquire before each send. acquire asks the limiter how long to wait, sleeps if needed, and records the time of the call. The key decision was a sliding window: I keep the timestamps of recent calls in a deque, drop the ones older than a second, and only allow a call when fewer than three remain. I chose that over a counter that resets every second because a resetting counter lets a burst through at the boundary. The trade-off is that the limit lives in one process's memory, so it is only correct while one worker runs the job. If I did it again, I would keep this interface but store the window somewhere shared, so we could add workers without breaking the provider's limit."
That answer takes well under two minutes to say. It names the entry point before any line of code, it spends most of its time on one decision, and it raises its own weakness before being asked, which turns the obvious follow-up into a conversation you have prepared for.
Follow-ups to expect, and how to answer them
The candidate reports describe the AI asking why you chose something and what was hard to build, so prepare for questions like these rather than a longer monologue. Each one below is answered for the example, and the same shape works for your own project.
"Why not the simpler option?"
This tests whether the decision was deliberate. Answer with the concrete failure the simpler version has. For the example, we ran a counter that resets on each whole second against six calls between 0.97 and 1.02 seconds: it let all six through, twice the limit inside a twentieth of a second, while the sliding window allowed three.
"What happens when this runs on more machines?"
This tests whether you know where your design stops working. Each process keeps its own deque, so two workers with the example limiter allowed six calls at the same instant against a limit of three. A good answer names the limit plainly and then names the fix, which here is moving the window to a shared store.
"What does it cost?"
This is the complexity question in conversational form. Python's documentation says deque appends and pops from either end run in roughly constant time, so each call does constant work on average, and the deque never holds more than the limit's worth of timestamps. Say it in one sentence and stop; a walkthrough is not a place to derive it.
"How do you know it works?"
This tests whether you verified the behaviour or only believe it. The example takes the clock as a parameter, and acquire takes a sleep function, so a test can pass a sleep that advances fake time instead of waiting. That is how we checked the send times above. If your real project had no tests, say what you checked by hand and what test you would add.
"What was the hardest part, and how did you measure the result?"
The Taro account reports a question about the challenges of building the project, and this is where vague answers show. Use only numbers you actually have, and if you never measured the outcome, say how you would measure it rather than estimating one.
Preparing your own walkthrough
Pick one project from your resume that you can explain in depth, because the reports suggest the AI starts from what you listed. Write the six parts as short notes rather than a script, since a memorised paragraph falls apart at the first follow-up. Then say the walkthrough aloud and record it, and check that you named an entry point and a single decision in the first minute.
If the work was for an employer, prepare a version without client names, internal service names or proprietary numbers. The shape of the system and the reasoning behind your decisions usually carry the answer without client details, though what you may share depends on your agreement, and saying "I'll keep the client anonymous" costs you nothing.
Mercor offers a free practice interview that is not shared with companies and can be taken as often as you like, which is the closest rehearsal of the real format. Use it before spending a retake, since retakes are limited and visible to hiring managers.
Practising with Verve AI
Because Mercor's policy limits AI help to checking grammar and lightly refining wording of ideas that are your own, any AI practice belongs before the interview, not during it. Verve AI's Mock Interview puts you in front of an AI recruiter using its Software Engineering question bank or questions you pick from its Question Bank, and scores each session in a report, so you can practise the six-part walkthrough under questioning and see where it gets thin. Rehearse your walkthrough with AI Mock Interview.
FAQ
Does Mercor show you code to explain, or do you explain your own?
Mercor's documentation describes technical interviews that require deep discussion of prior experience, not a round where you are handed code. The candidate accounts we could open describe questions about the candidate's own projects. Prepare to explain code you wrote. If you are shown unfamiliar code elsewhere in a process, treat it as a review and say what you assume before you start.
How long should my first walkthrough answer be?
Mercor does not set a length for individual answers. Since the whole interview usually takes about 20 minutes, a first pass of around two minutes leaves room for follow-ups. Cover all six parts briefly, then let the interviewer choose where to go deeper.
Can I walk through code from a job under an NDA?
Many people describe the purpose, the data flow and the decisions without sharing anything proprietary, but what an NDA allows depends on your agreement, so check it or ask your employer if unsure. Leave out client names, internal system names and confidential figures, and say that you are doing so. The reasoning is what you are there to show, and it survives anonymisation.
What if I have no metric for my project?
Do not invent one, because a made-up number is the easiest thing for a follow-up to break. Describe the outcome honestly and explain how you would measure it, for example by timing the job before and after the change. That answer still shows you think about evidence.
Sources
- Mercor AI interview facts (about 20 minutes, browser support, full-screen sharing, whiteboard, pause interjections, three retakes visible to hiring managers, free practice interview, "deep discussion of prior experience"): https://talent.docs.mercor.com/support/ai-interview
- Same AI interview FAQ, preparation page: https://talent.docs.mercor.com/how-to/prepare-for-ai-interview
- LLM usage policy (covers submissions, assessments and interviews; no LLM-provided justifications or explanations for writing purposes, no predicting code behaviour or runtime results, AI-produced submissions flagged): https://talent.docs.mercor.com/policies/llm-usage
- Candidate account, May 2024 (internship and project questions, database choice question): https://www.geeksforgeeks.org/mercors-ai-interview-experience/
- Candidate account, September 2025 (describe your project and its challenges, system design): https://www.jointaro.com/interviews/companies/mercor/experiences/software-engineer-india-september-30-2025-no-offer-neutral-6d69a877/
- Deque appends and pops in roughly O(1) time: https://docs.python.org/3/library/collections.html
- Verve AI Mock Interview (AI recruiter, Software Engineering and custom question banks, scored reports): https://docs.vervecopilot.com/features/mock-interview
- Code example and its results: written for this page and run locally in Python 3 with a fake clock and fake sleep (send times 0, 0, 0, 1, 1, 1, 2; counter resetting on whole seconds passed 6 of 6 calls between 0.97 and 1.02 s versus 3 for the sliding window; two independent limiters allowed 6 calls at t=0).
Ryan
CEO of Verve AI







