Sunday, May 23, 2010

Decreasing order of integers from a stream of infinite numbers.

Given stream of infinite no of integers and a function named getnext() which gives the next integer from stream continuously.U have to store the numbers in decreasing order and remove duplicate also in efficient manner.

No comments:

Post a Comment