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. Flag a reading as anomalous when it sits more than `threshold` standard deviations from the mean of the `window` readings just before it. The earliest readings won't have a full window behind them, and some windows won't give a meaningful spread.
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