Unbroken
A easy Python interview practice problem on DataDriven. Write and execute real python code with instant feedback.
- Domain
- Python
- Difficulty
- easy
- Seniority
- junior
Problem
A linac logs a dose reading each cycle, and instability shows up as a drop from one cycle to the next. Given the readings in order, return the length of the longest unbroken stretch where the dose never fell below the previous reading.
Summary
A single dip resets the clock. Find the longest the machine held steady.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and checks it automatically.