911 Dispatch: Responder Recommender
A practice debugging and feature-extension interview round in Python. Read an unfamiliar codebase, implement the requested behavior, run tests, and explain your decisions to an AI interviewer.
The incident
Dispatchers currently pick responders by hand. Finish the recommender so it returns the top_k closest available responders that have the incident's required capability and whose GPS is fresh.
The geo helper is read-only; implement recommend_responders and wire the service wrapper to report a count alongside the recommendations.
Requirements
- Only include responders whose status is 'available'
- Only include responders that have the incident's required capability
- Exclude responders with stale GPS (last_update > STALE_THRESHOLD)
- Rank by distance and return at most top_k
- Service wrapper returns both a count and the recommendations
What this round practices
Build a responder recommender for a dispatch system under several constraints at once: capability, availability, GPS freshness, and ranking. It practices filtering before ranking, handling stale data explicitly, and explaining tradeoffs in a system where the order of results matters.
Files you will work in
These 7 workspace files open in the in-browser editor when you start the round. Hidden tests also run when you submit.
task.mdsrc/__init__.pyREADME.mdsrc/geo.pysrc/dispatch.pysrc/dispatch_service.pytests/test_dispatch.py
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.
- Codebase understanding
- Requirement decomposition
- Implementation quality
- Verification
- Communication clarity
How the round works
You get 45 minutes in a Python 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- MediumAdd feature
Add Ranked Support Ticket Search
Add filtered, ranked support ticket search across service and API layers
Python · 55 min
- MediumBug fix
Rate Limiter: Requests Slip Through During an Outage (Python)
The API gateway admits requests during a quota-store outage, while unexpected storage errors disappear from its caller.
Python · 30 min
- MediumBug fix
Cache cleanup: reconcile the overnight report
The overnight cache report disagrees with the morning metrics in both directions. Trace a small Python service, reconcile the counts, and verify its replay checks before operations plans capacity.
Python · 45 min