The Code Review Round: Finding Bugs in Someone Else’s Code
The snippet compiles. The tests, if there are any, pass. Somewhere in it are two or three deliberate problems at different depths, and how deep you get is the score.
| Review layer | What interviewers want spotted | Red flag |
|---|---|---|
| 1. Correctness & boundaries | Off-by-one indexing, null or empty collections, zero/negative inputs, broken invariants | Assuming passing happy-path tests prove edge cases are safe |
| 2. Failure & error paths | Swallowed exceptions, empty catch blocks, missing network timeouts, silent partial writes | Stopping after the first shallow bug on line 4 and missing silent data loss below |
| 3. Concurrency & resources | Check-then-act race conditions, shared mutable state, unclosed handles on early return | Reading the snippet as single-threaded when requests arrive concurrently |
| 4. Performance & security | N+1 queries inside loops, unbounded caches, unparameterised SQL, or logged secrets | Debating micro-optimisations on five items while missing a database call inside a loop |
| 5. Feedback tone & severity | Clear separation of merge-blockers vs Nit: suggestions; critiquing behaviour, not the author | Treating formatting preferences as blockers or phrasing comments as personal attacks |
On this page
Why companies use this round
Reading code is most of the job. A field study of 78 professional developers (Xia et al., ICSE 2018) found that about 58% of their working time went to program comprehension — understanding what exists rather than producing something new. This round tests that directly in a way a blank editor never can.
It also scales down well. In twenty minutes with a prepared snippet an interviewer learns whether you notice a race condition, whether you can tell a real problem from a style preference, and how you deliver criticism — which matters, because you will be reviewing colleagues next month.
Look in this order
Correctness first. Does it do what it claims for every input, not just the example? Off-by-one, empty collection, null, the boundary at zero.
Then failure paths. What happens when a dependency breaks — the network call times out, the file is missing, the parse fails. Swallowed exceptions and empty catch blocks live here, and they are one of the most frequently planted bugs.
Then concurrency and resources. Check-then-act patterns, shared mutable state, connections opened but not released on the error path. An early return that skips a close is a classic, precisely because it looks harmless.
Then performance, where it matters. A query inside a loop is a real finding. A slightly inefficient concatenation over five elements is noise.
Style last, and briefly. Naming and formatting are worth one sentence, not five. Leading with them tells the interviewer you did not find anything real.
The trap: stopping at the first bug
Interviewers usually plant several problems at different depths. There is an obvious one near the top — a missing null check, visible in ten seconds — and it exists to see what you do after you find it.
Candidates who announce it and stop have answered a different question than the one asked. Candidates who note it and keep reading find the resource leak forty lines down, which is the one the round was built around.
Say the shallow one quickly and move on: “Missing null check on line four, easy fix. Let me keep going before I suggest changes.”
How you say it is graded too
This round doubles as a test of how you give feedback, because the code was written by a hypothetical colleague and the interviewer is imagining you saying this to a real one.
Two habits read well. Separate severity — say plainly which findings block a merge and which are preferences, because a reviewer who treats everything as equally urgent is exhausting to work with. And describe the failure, not the author: “this returns stale data when two requests arrive together” rather than “this is wrong”.
Google’s public engineering-practices guide formalises both habits: it tells reviewers to comment on the code and never on the developer, to explain why, and to label minor points with prefixes such as Nit:, Optional: or FYI: so the author can tell required changes from suggestions.
If you would ask the author a question rather than assert a bug, say so. “I would ask whether this is ever called concurrently — if it is, this counter is not safe.” That is what a real review comment looks like.
The bugs that get planted most
A short list worth knowing. Nobody publishes statistics on interview snippets, but these are the same failure classes Google’s public review guide tells reviewers to check for — including parallel code that could cause deadlocks or race conditions.
The swallowed error. A catch block that logs nothing and continues, so the failure becomes invisible downstream instead of loud at the source.
The leaked resource. Something opened at the top, closed at the bottom, and an early return in the middle that skips the close entirely.
The check-then-act race. Read a value, decide based on it, write it back — correct alone, wrong the moment two callers arrive together.
The mutable default or shared cache key. State that persists between calls when it was meant to be per-call, which produces bugs that only appear under load.
When the code is fine
Occasionally the snippet is mostly correct, and the round is testing whether you invent problems to look thorough. Inventing them is the failure.
The right answer is to say what you checked and found clean, then name what you would want before approving: “Logic holds for the cases I can see. I would want to know how it behaves when the upstream call fails, and I would add a test for empty input — but I would not block on anything here.”
That answer demonstrates a review process. Three invented nitpicks demonstrate the opposite.
Where a copilot fits
Interview Copilot follows the round in real time and puts a structure on your screen as soon as the other person finishes the question — what the question is actually asking, the constraint that matters, and the trade-off worth saying out loud. Not a script to read: a scaffold you speak from, in your own words.
Preparing for adjacent practical rounds? Compare how to collaborate in pair programming interviews, explain code out loud, and navigate unfamiliar codebases in the Stripe Bug Squash interview.
Sources
- Xia, Bao, Lo, Xing, Hassan, Li — “Measuring program comprehension: a large-scale field study with professionals”, ICSE 2018 — about 58% of developer time spent on program comprehension (checked 14 Oct 2026)
- Google Engineering Practices — What to look for in a code review — what reviewers check, including race conditions and over-engineering (checked 14 Oct 2026)
- Google Engineering Practices — How to write code review comments — comment on the code, not the developer; Nit / Optional / FYI labels (checked 14 Oct 2026)
Note: Google’s interview-tips page states that Google Search and AI tools are not permitted during its interviews. Other employers set their own rules — check them before using any assistant in a live round.
FAQ
What is a code review interview round?
You are given code with planted problems and asked what you would change. It tests whether you can read unfamiliar code, prioritise what matters, and give feedback a colleague could act on.
What should I look for first when reviewing code in an interview?
Correctness before style: edge cases, error handling, concurrency and data loss. Naming and formatting are real but cheap findings, and leading with them signals you stopped at the surface.
Is it a trap if the code looks fine?
Sometimes. Saying "this is correct, here is what I would still change and why" is a valid answer — inventing a defect to prove you are thorough is not, and interviewers notice.
How long does a code review interview typically last?
Usually 30 to 45 minutes, either as a dedicated pull-request review of 50 to 150 lines or paired with a live debugging step. Spend the first three to five minutes reading the entire snippet top to bottom and confirming how the code is called in production before leaving line-by-line comments.
How should I phrase comments during a live code review interview?
Label severity explicitly, describe the runtime failure rather than criticising the author, and frame missing context as a question—for example: "Blocking: if the HTTP call throws here, the database connection leaks; Nit: renaming flag to isRetryable would make the branch clearer."
What are the most common bugs planted in code review interviews?
Four failure classes recur across languages: empty or over-broad catch blocks that swallow upstream errors, leaked files or connections caused by an early return before cleanup, check-then-act race conditions on shared state or caches, and N+1 database or RPC calls hidden inside a loop.
More guides
How the app helps here
Related articles
Use cases
Interview Copilot is a desktop app
It's a desktop app for macOS, Windows and Linux — a phone cannot capture the interviewer's audio or hide a window from screen share. Open this page on your computer to install it.
And during the interview this phone can be your screen: scan the QR code in the laptop app and the answers appear right here. How phone mode works →