Patterns
Why companies choose specific problem types for AI coding interviews, and a map of the patterns you'll encounter.
Companies don't pick AI coding problems at random. The reason you see the same kinds of problems over and over is deliberate: they're challenging enough to allow for multiple paths and non-obvious solutions, but not so complicated they can't fit in a 45-minute interview. You're less likely to see simple LeetCode easy/medium problems, because AI squashes those immediately and there's nothing interesting left to evaluate.
The unstable balance
Teams are constantly evolving these rounds as models get better. What we hear from the teams responsible is that they continually re-assess with new model releases to make sure the AI can't one-shot the problems. Problems that survive the filter tend to cluster around a handful of algorithmic patterns: dependency resolution, constraint satisfaction, and graph traversal.
How patterns change in an AI interview
In a traditional interview, knowing patterns saved you time. In an AI-enabled interview, knowing patterns is what lets you steer the AI toward the right approach and follow the solution it hands back — instead of nodding along to code you don't fully understand. The AI handles the implementation. What you bring is the judgment behind it. Think of it as more bandwidth for the conversation rather than ready-made templates.
This is a double-edged sword. One mistake we see constantly: candidates have a vague, wrong idea of how to solve a problem, ask the AI with some specificity, and get a contorted version skewed to what they asked for. If you ask for a "sliding window" solution to a graph problem, the AI will work really hard to satisfy your request even when it's not the right approach.
The difference between candidates who ace these interviews and those who struggle is how quickly they can:
- Map the problem to a known approach.
- Communicate that approach to the AI with enough specificity that the output is useful.
- Understand and verify outputs that might be genuinely deep.
You won't learn Monte Carlo tree search during the interview. But if you know it in advance, you're far more effective when it shows up — either in the AI's response or as the obvious solution to the problem.
The patterns
Here's a quick tour. Each one gets a full deep-dive in the Common Patterns section.
| Pattern | When it shows up |
|---|---|
| Graph Search & Pathfinding | Navigating networks, shortest paths, exploring connected structures. BFS, DFS, Dijkstra, A*. |
| Topological Sort | Anything with dependencies: build systems, course prerequisites, task scheduling. If things must happen in order, you're looking at a DAG. |
| Backtracking | Constraint satisfaction. Configuration generators, puzzle solvers, scheduling with complex rules. Try, check constraints, undo. |
| Greedy & Bin Packing | Where local optimization gives a good-enough global answer. Resource allocation, interval scheduling, packing. |
| Dynamic Programming | Overlapping subproblems. Edit distance, constrained allocation, path counting. "Have I solved a smaller version of this before?" |
| String Matching & Parsing | Pattern matching, text processing, expression evaluation, template engines. |
| Data Structure Design | Composing primitives — maps, heaps, queues — into custom structures under performance constraints. LRU caches, time-based key-value stores. |
| API Contracts & Side Effects | A multi-file service that's already broken. No algorithm to find — the work is matching an API spec exactly and spotting the downstream work a state change forgot to trigger. |
Short on time?
At minimum, understand graph search, topological sort, and backtracking. Those three cover the majority of problems we've been seeing lately.
Many problems pull in more than one pattern. Recognizing the shape is your job — the AI is there to help you build it.
The last row is the odd one out, and it's growing fastest. Instead of a blank editor you get a running service with a failing test suite, and the question becomes why is this behaving wrong rather than what algorithm applies. It rewards reading over writing, which is exactly the skill AI assistance makes scarce.
Quick check · A problem describes tasks with prerequisites and a build system that must fail loudly if a cycle exists. Which pattern do you reach for?
Premium
Unlock the rest of this guide
Premium unlocks every pattern deep-dive, every problem breakdown and solution, the practice sandbox, and verdict feedback on your practice runs.
- Problems are chosen to survive the AI filter — they require judgment, not just implementation.
- The AI can implement a topological sort, but it can't decide that topological sort is needed.
- A vague but confident wrong plan gets you a contorted version of the code you asked for.
- Graph search, topological sort, and backtracking cover most problems we see.
- The full article, complete and uninterrupted
- All pattern deep-dives and problem breakdowns
- Practice sandbox and verdict feedback