loopprep

LoopPrep by the numbers

The bank, counted.

Every question, step, and test case in the LoopPrep bank, counted from the bank itself. When a question ships, the numbers move with it.

44 questions · 218 steps · 2025 test cases

loopprep Transactional Key-Value Store

Transactional Key-Value Store

Hard 45 min Asked at Anthropic OpenAI xAI

Grow a plain dictionary into a store — then keep extending it while the old tests still have to pass.

  1. ▸ Step 1 · Set and get 00:00
  2. Step 2 · Delete and count Locked
Step 1 — Set and get. Implement set(key, value) and get(key). get returns null for a missing key.
solution.js
Files
▸ solution.js
  test_kv.js
Terminal Clear
$ playing…

LoopPrep by the numbers — the bank counted, per lab.

How it works

Build it once. Then keep extending it.

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.

Every step re-runs every earlier test. You cannot break Step 1 to make Step 3 pass — the same constraint you face when an interviewer adds a follow-up.

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.

LoopPrep by the numbers

44 questions, 218 steps, 2025 test cases.

Every number on this page comes from the question bank, generated at build time. When a question ships, the numbers move with it.

LabQuestionsStepsTest cases
OpenAI1993859
Anthropic1888772
Perplexity630281
Scale AI420210
xAI314115
Cursor1555
All AI labs422081923
Not tagged to a lab210102

A question can be reported at more than one lab, so the lab rows add up to more than 42. A tag means candidates described a question like it at that lab, not that the lab wrote it.

Free and premium

3 free. 41 premium.

Free: 3 full questions (Transactional Key-Value Store, Profiler Stack Samples, Worker Mode Tracker), 14 steps, unlimited runs. Premium: 41 questions, 204 steps, 1923 test cases, at $19 a month for new subscribers. 44 of the 44 questions ship in Python, TypeScript, and Java. The bank holds 35.4h of timed practice.

Counts are generated from the question bank at build time and corrected from the live catalogue on load, so they cannot go stale when a question ships. Machine-readable versions: llms.txt and pricing.md.

Pricing

Keep practicing without a question limit.

One monthly subscription unlocks every question with unlimited runs.

Free
$0

A complete way to experience the multi-step format.

  • 3 full questions, 14 steps
  • Unlimited runs, timers, the real test files
Start coding now
Premium
$19 / month

Every question in the bank, plus each new one as it ships.

  • All 44 questions, all 218 steps
  • Multi-file workspaces with the real test files
  • Every new question as it ships
  • Cancel any time — your progress stays
Unlock Premium · $19/mo

Cancel any time. Your saved progress stays with you.

Machine-readable pricing for agents: pricing.md.

LoopPrep vs LeetCode Premium

Different practice, cheaper price.

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.

LoopPrepLeetCode Premium
Monthly price$19 / month$35 / month
What you practiceMulti-step systems: build, then extend while old tests still passMostly single-function puzzles, solved once
Questions44 multi-step questionsThousands of problems, across many formats
Steps / timed practice218 steps · 35.4hPer-problem, not built around follow-up steps
Test cases2025, visible in a multi-file workspaceHidden tests, as in a judge
Free tier3 full questions, every step, unlimited runsMany free problems; Premium adds company tags and more
LanguagesPython, TypeScript, and Java, in your browserMany languages, in a judge
Best forAnthropic, OpenAI, and other AI-lab style loopsBreadth, company-specific tags, and algorithm recall
If you cancelProgress stays; premium steps re-lockPremium 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

How each AI lab interviews.

What the loop looks like at each lab, what its coding rounds test, and the questions candidates report from it — all runnable here.

Anthropic coding interview prep

CodeSignal assessment, the values round, and multi-step questions reported at Anthropic.

OpenAI coding interview prep

CoderPad screen, the project presentation, and practical questions reported at OpenAI.

Perplexity coding interview prep

Multi-part Python screen, search-systems design, and questions reported at Perplexity.

xAI coding interview prep

The exceptional-work statement, hands-on systems rounds, and questions reported at xAI.

Scale AI coding interview prep

HackerRank screen, the debugging round, and questions reported at Scale AI.

Cursor coding interview prep

The onsite work trial in the real codebase, and questions reported at Cursor.

Coding interview prep for AI labs

Every question reported at an AI lab, in one place.

Questions about the questions

Details

Does my code leave the browser?

No. Pyodide and the TypeScript compiler both run in a web worker on your machine; your code and results never reach a server.

Which languages?

Python, TypeScript, and Java. 44 of the 44 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.

Can I stop mid-question?

Yes. Code, step progress and timings persist locally per question. Reset clears one question without touching the rest.

Are these real interview questions?

They are interview-style questions: one premise followed by requirements that build on working code as time runs down.

Which companies are these questions from?

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.

Why are they all marked Hard?

They are designed to leave room for follow-ups, tradeoffs, and deeper implementation work within a timed session.

What if I cancel?

You keep every free question and everything you've already written. Premium steps re-lock; nothing you solved is deleted.

See how your solution holds up as the problem changes.

Start with a full multi-step question and practice the follow-ups that make interviews challenging.

Start coding now