Skip to Main Content
After 13 years of collaboration, MindSumo will be winding down its platform operations and closing December 31st, 2025. We are sincerely grateful to our solvers and clients for their contributions and partnership. If you have any questions, please contact us at [email protected].
Return a random object from the stream
See more like this check out our active challenges
$75
top 5
29
submissions
DONE
148 months

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: 1672 characters
Your solution must be at least 200 characters long