Skip to Main Content
Return a random object from the stream
See more like this check out our active challenges
$75
top 5
29
submissions
DONE
128 months ago

Suppose you have a stream object. This stream object ONLY has two methods. They are:

HasNext() - returns a boolean if there are more items in the stream

GetNext() - returns the next item in the stream

Given a stream such as this one, return a random object from it. No, the stream cannot be reset.

    Submissions will be graded on the following criteria:
  • Meets Deliverables
  • Creativity
  • Clarity
Reward Tiers
5 Winners
will receive $15 each
Leaderboard
$15.00 Hoa Mai University of California at San Diego
$15.00 Thomas Dorsey University of Michigan
$15.00 Rushabh Pasad Rochester Institute of Technology
$15.00 Matthew Adelman Wesleyan University
$15.00 Anshuman Sahoo University of Toronto
Submission questions


0 characters Average: 1686 characters
Your solution must be at least 200 characters long
Contact Us