DataDrivenDataDriven
LearnPracticeInterviewDiscussDailyJobs

High Water

A easy Python interview practice problem on DataDriven. Write and execute real python code with instant feedback.

Domain
Python
Difficulty
easy
Seniority
L4

Problem

A monitoring service records a stream of integer readings and, after each new reading, reports the largest value seen so far. Given the readings in arrival order, return the sequence it reports, one value per reading.

Summary

Every reading remembers the highest that came before.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and checks it automatically.

Related

  • All Practice Problems
  • Mock Interview Mode
  • Python Interview Questions
  • Data Engineering Interview Prep Guide
  • Daily Challenge
  • Data Engineering Lessons