Out of Nowhere
A hard Python mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.
- Domain
- Python
- Difficulty
- hard
- Seniority
- L6
Interview Prompt
A monitoring service emits readings as `(timestamp, value)` pairs in time order, and on-call wants the readings that jump away from their recent baseline. A reading is anomalous when it sits more than `threshold` population standard deviations from the mean of the `window` readings immediately before it, the current reading excluded. Skip the opening readings that lack a full `window` of history, and skip any reading whose prior window is perfectly flat.
Summary
Every stream has a rhythm. Find the readings that break it.
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write your python solution with real code execution
- Get instant feedback and a hire/no-hire decision