Loading...
The Crowd Splitter
A easy Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- easy
- Seniority
- mid
Problem
Our anomaly detection system processes sensor batches where one value dominates (more than half the readings). Write a function that returns the median of such a list - since one value dominates, you can exploit that property without fully sorting.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.