Stage 1 of 4: Fix adding a movie
Background. A small movie service: users keep watch lists of movies and search the catalog. API.md is the contract every endpoint is held to; app.py wires the routes in urls.py to the handlers in views_watchlists.py and views_search.py, over the database in db.py.
The ticket says adding a movie to a watch list is broken: the movie does not show up afterwards, and the same movie can be added twice. Four tests in tests/test_part1_add_movie.py fail.
Find out why and fix it. Don't change the read-only files.
Done when Submit goes green.
Constraints
- Python 3.12+ standard library only
- Time limit: 5 seconds per test
- Editable:
urls.py,views_watchlists.py,views_search.py - Read-only:
API.md,framework.py,db.py,auth.py,models.py,serializers.py,app.py,test_helpers.py, alltests/test_*.pyfiles
What comes after stage 1
The next stages open once the tests for the one before them pass. Each raises the bar, the way an interviewer does in the room.
- Stage 2: Fix removing a movie. Removing a movie never works; the contract says what should happen.
- Stage 3: Make search meet its contract. Search returns the wrong movies in the wrong order; make it meet its contract.
- Stage 4: Fix what the ticket left out. The ticket missed an endpoint; two failing tests point at it.
The files you get
- Yours to edit: urls.py, views_watchlists.py, views_search.py.
- Read-only: API.md, app.py, framework.py, db.py, auth.py, models.py, serializers.py, test_helpers.py, tests/__init__.py.
- Tests you can read and run: tests/test_part1_add_movie.py. Hidden tests run on Submit.
The round: an assistant that cannot write code
In this round the assistant answers your questions and reviews your code when you ask, but it can't write a single line of it. Every line is yours. Amazon's assessment is close to this: in most candidate reports its assistant explains the code and leaves the fix to you. It is the harder format if you are used to letting the model type. You can switch the format when you press Begin.
Frequently asked, briefly answered
Is Movie DB: Watch Lists and Search free?
Stage 1 is free with an account. The other 3 stages need Nyrion Pro.
Which company asks something like this?
Amazon. It is modelled on Amazon's round: Online assessment: a 60-minute repository debugging task in a browser IDE with a built-in AI assistant (you pick the stack) that explains the code and the errors and, in most candidate reports, does not edit files or write the fix, next to a classic coding question, work simulation and work style surveys.
Do I bring my own AI tool?
No. The assistant is in the editor, same as in the interview IDEs at Meta, Stripe and Amazon. What you choose at Begin is the format: an agent that proposes changes you accept or reject, or an answer-only assistant that can't write code.
What does the interviewer ask?
4 questions along the way about your own code, and one at the end about the whole session. A weak answer gets one follow up. The answers go into the report, which ends with a hire or no hire verdict.
Start the problem
Sign in and the problem opens where you left it. New here? An account takes a minute to create, and the first stage of this problem is free.
More like it: every practice problem, how Amazon runs its AI round, the AI coding interview guide.