Loading...
The Waiting Game
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
- Seniority
- mid, senior
Problem
A weather forecasting app wants to show users how many days until warmer temperatures arrive. Given a list of daily temperatures, write a function that returns a list where each element is the number of days until a warmer temperature occurs. Use 0 if no warmer day follows.
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.