The High Mark
A easy Python interview practice problem on DataDriven. Write and execute real python code with instant feedback.
- Domain
- Python
- Difficulty
- easy
- Seniority
- L3
Problem
We're monitoring a batch of integer sensor readings that arrive in order, and we need the running peak: the highest value seen so far after each reading. Return one peak-so-far value per reading, and an empty batch returns an empty list.
Summary
Scan the list. Report the max.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and checks it automatically.