Practice debugging real code
before your interview
A small, realistic codebase with failing tests. Find the bugs, fix them by hand, and see how an interviewer would rate your debugging.
- Real-world challenges
- Hints when you're stuck
Companies that run a debugging round like this
- stripe
- DoorDash
- Meta
- coinbase
How it works
Battleship
Bug 1Bug 2
Current goalGet test_place_ship_rejects_out_of_bounds passing.
Players have reported two problems: ships can be placed partly off the board, and hitting a ship’s last cell doesn’t always sink it.
Files
- battleship
- board.py
- ship.py
- game.py
- tests
- test_board.py
- test_game.py
3 / 3 tests passedRun · visible tests
test_place_ship_inside_board ... ok
test_place_ship_rejects_overlap ... ok
test_place_ship_rejects_out_of_bounds ... ok
Hints · Bug 2
Look at is_sunk in ship.py: what does it return after the last cell is hit?
Performance: Good
Python·Both bugs fixed·6m 55s of the 25-minute guide
- FixedBug 1 · Ships placed off the board3m 10s
- FixedBug 2 · Last hit doesn’t sink the ship3m 45s
Challenges
Each one is a small project with failing tests.
Why bug bash
Fixing code you didn’t write is part of the job, and now part of the interview
It’s in the interview loop
More interviews give you a project with failing tests and ask you to fix it, not write it from scratch.
It’s most of the job
Reading unfamiliar code and tracing a fault through it is what engineers do every day.
A rating, not just a pass
Every round ends with a report on how you traced each bug, the hints you used, and a performance rating.
Related courses
Company interview guides
- GuideAnthropic Generative AI Engineer Interview 2026Prepare for the coding, LLM applications, evaluations, prompting, System Design and AI safety rounds, with a five-week plan to get you ready.Updated for 2026
- GuideMistral AI Software Engineer Interview 2026What to expect in Mistral AI’s loop: coding, System Design, AI infrastructure and the ML concepts that come up, with example questions.Updated for 2026
- GuideOpenAI Software Engineer Interview 2026How OpenAI’s software engineer interviews run, from coding and System Design to behavioral rounds, with a study plan to follow.Updated for 2026
FAQs
A debugging round: you get code you didn’t write, with failing tests, and fix it while the interviewer watches how you find each fault. More companies now run it alongside, or instead of, a from-scratch coding round.