7. Question - Infinite Stream #

Created Tuesday 18 February 2020

Q) We are given an array(always finite) of integers. An infinte stream of integers is coming, we have to say for every integer “have we seen that before”? A) One possible wrong way is that we store the all integers as indexes of a boolean array. If a number is present, return true. If not, mark it true.