aicodinginterview Waitlist

AI coding interview questions: real tasks from 150 candidate reports

AI-assisted coding interviews rarely ask a single LeetCode puzzle. We went through 150 candidate reports from 38 companies to see what the questions actually are. Here are the six kinds of task that come up, each with real examples and how to approach it.

The numbers

Of the 150 reports in our database, 111 describe the task:

TaskReports
Fix bugs in an existing codebase50
Build something from a spec36
A mix of the above, in stages17
Extend existing code8

Most rounds last about an hour: 60 minutes is by far the most common length in reports that give one. Bug fixing is common partly because Amazon’s online assessment, the biggest group in our reports, is built around it. Each report is a summary of a public post or an official page, and each is linked to its source.

1. Make the failing tests pass

You get a repo you’ve never seen, some failing tests and an AI assistant. Real examples:

Approach: run the tests first, read the failure, and ask the AI to explain the code path before you ask it for a fix. Check every fix against the test that failed.

2. Build a small system from a spec

A short problem statement, and you design and build it, often with object-oriented code and simple algorithms:

Approach: spend the first few minutes on design: name the entities and the rules, agree them with the interviewer, then let the AI scaffold while you write the core logic.

3. Extend an existing codebase

Approach: find where the change belongs and read the existing tests before writing anything. Ask the AI where similar logic already lives.

4. A classic problem with extensions

Some companies keep algorithm questions and add parts:

Approach: keep your algorithm skills sharp. Use the AI for boilerplate, tests and edge cases, not to choose the approach.

5. Multi-stage: fix, build, then scale

Meta’s AI-enabled round is the clearest example. One candidate’s card game task: draw cards into a grid and pick 3 whose values sum to 15. First fix a failing test, then implement a strategy that keeps picking valid triples (Blind). Others describe a maze solver with stages that scale up and need optimising. See our Meta guide.

Approach: keep each stage’s code clean, because the next stage builds on it, and watch complexity before the scale-up arrives.

6. Requirements first, then code

Approach: ask about edge cases, limits and what “done” means before you write a line. Write the agreed spec down where the AI can see it.

Code review rounds are a seventh, newer kind: you review AI-written changes instead of writing code. See our code review interview guide.

Practise these

Sources

All numbers come from our candidate report database as of 4 November 2026. Examples above link to the original posts.