Skip to main content
MediumAdd featurePython45 min

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.md
  • src/__init__.py
  • README.md
  • src/geo.py
  • src/dispatch.py
  • src/dispatch_service.py
  • tests/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.