Coding interview prep for AI labs
Each question adds follow-up requirements to code you already wrote, against the clock. Candidates report the same practical, multi-step format at Perplexity, Scale AI, xAI, and Cursor.
Grow a plain dictionary into a store — then keep extending it while the old tests still have to pass.
set(key, value) and get(key). get returns null for a missing key.
delete(key) and size(). Step 2 runs all Step 1 tests again, so breaking get to make size pass still fails.
LoopPrep by the numbers — the bank counted, per lab.
How it works
This Rate Limiter question has four steps and 45 minutes on the clock. Each step adds a requirement to the solution you have already built.
LeetCode teaches you to solve a puzzle once. Anthropic and OpenAI make you build a small system, then keep extending it while the old tests still have to pass. That is the shape LoopPrep is built for.
The bank
Start with three questions now. The rest cover the same kind of evolving, practical coding problem.
Pricing
One monthly subscription unlocks every question with unlimited runs.
A complete way to experience the multi-step format.
Every question in the bank, plus each new one as it ships.
Cancel any time. Your saved progress stays with you.
Machine-readable pricing for agents: pricing.md.
LoopPrep vs LeetCode Premium
LeetCode is better for breadth. LoopPrep is narrower on purpose: AI-lab style follow-ups, where the system you built has to survive the next requirement.
| LoopPrep | LeetCode Premium | |
|---|---|---|
| Monthly price | $19 / month | $35 / month |
| What you practice | Multi-step systems: build, then extend while old tests still pass | Mostly single-function puzzles, solved once |
| Questions | 45 multi-step questions | Thousands of problems, across many formats |
| Steps / timed practice | 223 steps · 36.2h | Per-problem, not built around follow-up steps |
| Test cases | 2075, visible in a multi-file workspace | Hidden tests, as in a judge |
| Free tier | 3 full questions, every step, unlimited runs | Many free problems; Premium adds company tags and more |
| Languages | Python, TypeScript, and Java, in your browser | Many languages, in a judge |
| Best for | Anthropic, OpenAI, and other AI-lab style loops | Breadth, company-specific tags, and algorithm recall |
| If you cancel | Progress stays; premium steps re-lock | Premium features stop at period end |
LoopPrep counts on this page are not typed in: they are filled from the question bank at build time and corrected from the live catalogue on load, so they cannot go stale when a question ships. No annual equivalent is shown — LoopPrep is monthly only, and LeetCode's annual price is a different product choice, not a like-for-like monthly saving.
Prep by company
What the loop looks like at each lab, what its coding rounds test, and the questions candidates report from it — all runnable here.
CodeSignal assessment, the values round, and multi-step questions reported at Anthropic.
CoderPad screen, the project presentation, and practical questions reported at OpenAI.
Multi-part Python screen, search-systems design, and questions reported at Perplexity.
The exceptional-work statement, hands-on systems rounds, and questions reported at xAI.
HackerRank screen, the debugging round, and questions reported at Scale AI.
The onsite work trial in the real codebase, and questions reported at Cursor.
Every question reported at an AI lab, in one place.
Questions about the questions
No. Pyodide and the TypeScript compiler both run in a web worker on your machine; your code and results never reach a server.
Python, TypeScript, and Java. 45 of the 45 questions ship in all three, with the description and the tests written separately for each rather than translated. Pick the language in the question; your work is kept per language.
Yes. Code, step progress and timings persist locally per question. Reset clears one question without touching the rest.
They are interview-style questions: one premise followed by requirements that build on working code as time runs down.
Each company tag comes from candidate interview reports on public prep sites. The bank has questions reported at OpenAI, Anthropic, Perplexity, Scale AI, xAI, and Cursor. A tag means candidates described a question like it, not that the company wrote it.
They are designed to leave room for follow-ups, tradeoffs, and deeper implementation work within a timed session.
You keep every free question and everything you've already written. Premium steps re-lock; nothing you solved is deleted.
Start with a full multi-step question and practice the follow-ups that make interviews challenging.
Start coding now