Your goal: find why a limited coupon is redeemed too many times, prove it with a test
that fails first, fix it, and say what changes when traffic grows.
How this works (about 30 minutes)
- The question and code appear in the shared editor. Python only.
- Read first and say what you notice. Ask Theo for the reports and the numbers you need.
- The tests choose which request runs next, so you can force the bad ordering. Run them from the editor.
- Tell Theo when you want him to look at your code.
- A production turn near the end. No scores during the call; your report comes after.
What scores well
- Naming the gap between the check and the write before you edit
- Reproducing the bug with a test that fails every time
- A fix you can explain, and a test that proves it
- Saying what the fix costs and what breaks with a second server
Tips
- Take Practical Coach · Debug: Races and Leaks first.
- Think out loud. Change one thing at a time.