Problem Solving: Stream of Numbers

Learn to write a program that takes a stream of numbers and prints the maximum-minimum and even-odd frequency.

In this lesson, we’ll solve a few problems that include the stream of inputs in which we have to deduce information by reading data only once (without having to store the data). Specifically, we will solve the following two problems:

  • Even-odd frequency count
  • Maximum-minimum number from the stream of numbers

So let’s start!

Get hands-on with 1200+ tech skills courses.