Create a class which populates a stream with k unique random numbers between 0 to max - 1 in an efficient ( No Space vs Speed tradeoff ) manner.
Below are variables and should be the input to the algorithm:
stream: Stream
k: int
max: int
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment