Verification
Of the four things this round grades, verification is the one you can most reliably control. Problem solving depends on whether you recognise the algorithm. Communication depends on nerve. Code quality is partly taste. Verification is a habit, and a habit you can decide to have.
It is also the clearest positive signal available. Meta’s criteria, as candidates have had them described, come down to: run the code often, check what the model produced before building on it, test the edge cases. The rhythm interviewers want to see is prompt, review, run, confirm, move on (Hello Interview, Meta’s AI-Enabled Coding Interview). Five beats, in that order, repeated for every chunk of generated code.
The word doing the work is every. The rhythm is not hard to execute once. It is hard to execute eleven times under a clock, which is why doing it eleven times distinguishes you.
Three ways verification fails
Not running after each generation. You generate a function, it looks fine, you generate the next one, that looks fine too, and you keep going because running costs twenty seconds and you have thirty minutes left. Then you run it at the end and four things are broken at once, interacting, with no way to tell which failure is causing which. The reason this is so expensive is not the bugs — it is that you destroyed the information about when they appeared. Running after each chunk gives you a bisection for free. Running at the end throws it away, and it throws it away at the moment in the round when you have the least time to recover.
Skipping the line-by-line read because it looked right. Generated code looks right as a matter of course. It has consistent naming, plausible structure, and no syntax errors, which are exactly the surface cues your eye learned to use for judging whether code is sloppy. Those cues no longer correlate with correctness. The glance is now worthless and you have to actually read.
Skipping tests under time pressure. This one almost always costs more than it saves, and it is the most tempting at exactly the wrong moment: minute forty-five, feature nearly done, scaling phase still ahead. Twenty seconds of test run against ten minutes of debugging a problem you introduced five minutes ago is not a close call.
What the model actually gets wrong
Generic warnings about hallucination are not useful here. In this format the mistakes cluster into three specific kinds, and knowing them tells you where to look.
Wrong assumptions about your data model. The most common and the easiest to miss. The code it wrote is correct in general and wrong against your types — it treats a grid cell as a string when the model stores characters, indexes rows and columns in the opposite order, or returns None where the rest of the system has agreed on -1. This is why reading the data models first pays twice: once for finding the bug and once for catching this.
Missed edge cases. Empty input, a single element, start equal to goal, no solution at all. The happy path is nearly always right. The boundary is a coin flip.
Code that looks right and subtly is not. A visited set marked on dequeue instead of on enqueue — correct output, quadratic blow-up. An off-by-one in a bound that only shows on the largest input. A comparator that is right except when two keys tie. These survive a glance and a small test, and they are precisely what phase three is built to expose.
Never paste what you cannot explain
The hard rule: do not put code in the file unless you can say what it does and why you chose it.
Say it out loud as you paste. “This is the BFS loop — it pops from the left of the deque so we get the shortest path, marks the neighbour visited as it enqueues, and returns the distance when it reaches the goal.” Ten seconds. You have verified your own understanding, and you have put the explanation on the record before anyone asked for it.
And when you do not understand a response, say that instead. “I’m not following why it needs two bounds checks there — I’ll write this bit myself rather than ship something I can’t explain.” That sentence costs you nothing. Being asked what line nine does and not knowing costs you the round. A candidate has reportedly received negative feedback for leaning on the assistant in a way that visibly degraded the quality of their solution; the risk is not using the tool, it is shipping its output unread (Hello Interview).
The test data is part of what you verify
This is the part people do not expect, and on this format it is often where the answer is hiding.
Phase-three test files are not just bigger. They are built to expose specific weaknesses, and different files in the same problem stress different dimensions. On Meta’s substring problem, one data file contains many short words — conditions where a trie is excellent — while another contains fewer, much longer words, where a greedy approach is actually faster. Candidates who noticed the trade-off and explained it scored well even when they did not implement both solutions (Hello Interview).
Sit with that for a second, because it changes what verification means. Reading the inputs was worth more than writing a second implementation. The optimisation was a property of the data, not of the algorithm, and the only way to find it was to look at the data.
So add it to the loop. When a new test file appears, open it. How many records, how long is each, what is the distribution, what is the degenerate case someone deliberately included. The maze solver in our sandbox does the same thing in miniature: its scaling phase generates a large open grid with a field of single-cell pillars, and its driver documents that the top row and right-hand column are always clear, which means the shortest path is known in advance. That one line in a docstring tells you your output is wrong before you have measured anything, because you can compute what the answer should be.
Debugging inside these environments
Verification is also mechanical, and the mechanics are worth knowing before the clock starts.
Print statements work and are usually the right tool for a sixty-minute round. CoderPad also supports interactive debuggers, and Python candidates can use ipdb to break and step rather than re-running with more prints (Hello Interview).
The quirks matter more than they should. The program output panel does not clear itself between runs, and if you have scrolled up it does not scroll back down when new output arrives. Both have the same consequence: you read stale output and start debugging something you already fixed. That is a two-minute hole in a sixty-minute round and it is entirely avoidable — clear the panel, or scroll to the bottom, before you read a result. Code also re-runs on save in Meta’s environment, and the run-tests-versus-run-main selection persists from your last choice, which is convenient once you know and confusing once if you do not.
If your recruiter offers a practice environment, the single best use of it is learning these mechanics, so that in the round you are verifying rather than fumbling with the UI.
In the interview room
The loop, with timings, plus what to say.
The five beats, every chunk. Prompt. Read the response in the panel before pasting. Paste and run. Confirm against what you expected. Say one sentence and move on. Target: under three minutes per cycle for a small chunk. If a cycle is running past five minutes, the chunk was too big — split it.
“Expected” has to be stated first. The beat people drop is confirm, because they never said what they were expecting, so there is nothing to compare against. Before you run, say the prediction out loud: “the five existing tests should pass and the gate test should still fail, because I haven’t wired the helper in yet.” Then run. Now the run either confirms or surprises you, and a surprise is information. Without the prediction, a green run and a red run teach you roughly the same amount, which is very little.
Run after every generation, no exceptions, including the ones you are sure about. The twenty seconds is the price of keeping your bisection. Say it as you go: “running again before I add the next piece.”
Boundary cases, out loud, before the interviewer asks. Keep a short list in your head for whatever you just wrote: empty input, one element, start equals goal, unreachable, largest allowed. Name the ones that apply and test the two most likely to break. “Start equal to goal should return zero — let me check that, because the loop returns before it ever marks anything visited.”
Clear the output panel before you read it. Every time. Then check you are at the bottom of it. This is a tiny habit that prevents the specific failure of debugging a bug you already fixed, which feels like madness while it is happening.
Open every new test file. The moment phase three hands you a bigger input, spend forty-five seconds reading its shape before you optimise anything, and say what you find: “this one is many short strings and the other is a few long ones, which favour different structures — a trie wins on the first, greedy probably wins on the second.” If you have time for only one implementation, implement one and explain the other. That is a scoring answer.
When a test fails, do not re-prompt first. Read the failure, form a hypothesis, state it, then verify it with a print or a breakpoint. “It’s returning six instead of four, which is longer than the direct path, so I think the frontier is still a stack and we’re returning the first path found rather than the shortest.” Pasting a stack trace into the chat and asking what is wrong is the move interviewers read as prompting your way out of a problem. Diagnosing first and then asking a narrow question is the move they read as debugging.
The ten-minute checkpoint. With ten minutes left, stop adding and start verifying. Run the whole suite, re-read the diff of what you changed, and check the edge cases you named earlier and did not test. Finishing with a smaller feature that is verified beats finishing with a larger one that is not, and candidates who ran out of time on the final phase have still cleared the loop.
Say the complexity before you are asked. It is a verification claim like any other, and it is nearly always a follow-up question. “This is O of rows times columns, each cell enters the queue once because we mark on enqueue, and the visited array is the same order of space.”
Drill the rhythm, not the knowledge. In the sandbox, run a problem under one rule: you may not type a second prompt until you have run the code from the first. It is a small constraint and it rebuilds the habit faster than anything else, because it makes skipping the run impossible rather than merely unwise. Then take the whole loop into a full session and watch what it does to your pacing — that is what talking while you work is built on top of.