Maze Library: Paths Fail After Directional Cells and Doors
A practice debugging interview round in JavaScript. Reproduce the failure in an unfamiliar codebase, narrow down the cause, ship a minimal fix, and explain your reasoning to an AI interviewer.
The incident
The maze library already parses grids, searches for routes, and renders a preview. The ordinary corridor test still passes, but previews and newer navigation features fail.
Read README.md and the model before editing. First repair rendering, then verify ordinary traversal, directional cells, and keys/doors in that order. Preserve the public APIs and the original maze. Return any shortest legal route, or null when the exit is unreachable. Finish by explaining the time and space costs of your implementation with three possible keys.
What this round practices
An older maze library gained new cell types and the newer features broke while the original tests still pass. The task gives an order to repair things in, so the round practices working through a layered codebase step by step and keeping public APIs stable as you go.
Files you will work in
These 6 workspace files open in the in-browser editor when you start the round. Hidden tests also run when you submit.
task.mdREADME.mdsrc/maze.jssrc/solver.jssrc/render.jstests/maze.test.js
What you are assessed on
The scored report evaluates both your investigation steps and what you explain during the conversation, not only whether the final test run passes.
- Reproduction
- File navigation
- Evidence gathering
- Hypothesis
- Root-cause understanding
- Regression prevention
- Patch scope
- Verification
- Edit control
- Communication clarity
How the round works
You get 60 minutes in a JavaScript workspace that runs in your browser, with no setup. Talk through your plan with the AI interviewer by voice or text, run the tests as often as you like, and submit when the visible checks pass. Hidden tests run on submit, and the scored report covers what you did and what you explained.
Ready to debug this codebase?
Open the workspace, run the failing check first, and walk the AI interviewer through your findings.
Related rounds
View all debugging rounds- HardBug fix
Billing: Duplicate Credits and Surprise Downgrades After Replays
Paid accounts got double monthly credits after a webhook replay, and one account was downgraded even though a later upgrade had already been applied.
JavaScript · 55 min
- HardBug fix
Rate Limiter: Bursts Slip Past the Plan Limit
The API gateway lets a traffic spike reserve more requests than a customer's plan allows, and two accounts blew past their quota during this week's spikes.
JavaScript · 50 min
- HardBug fix
Alert-incident rollup hides a monitor's second page in an interleaved feed
The per-monitor alert-incident rollup an on-call engineer reads reports one monitor firing fewer times than the metering dashboard, hiding a real second incident that already paged.
Python · 50 min