Loading...
The One-Way Street
A easy Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- easy
- Seniority
- junior, mid
Problem
Before loading a time-series feed into the warehouse, the data quality layer needs to verify the values only move in one direction. Feeds that bounce up and down get rejected. Given the raw feed values, determine whether the sequence is monotonic.
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.