The Rolling Peak
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
- Seniority
- L4
Problem
A monitoring export hands you per-minute throughput readings in `nums`, and you want the busiest sustained stretch of exactly `k` consecutive minutes. Return the highest average over any contiguous block of `k` readings, which can run negative when traffic dips below baseline. Return `None` when there are fewer than `k` readings to fill a single block.
Summary
The sweetest stretch in the sequence.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.