Skip to Main Content
The MindSumo platform is now officially closed. We thank our solvers and clients for 13 years of insight, creativity, and collaboration. For any remaining questions, please reach out to [email protected].
Return a random object from the stream
See more like this check out our active challenges
$75
top 5
29
submissions
DONE
150 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: 1719 characters
Your solution must be at least 200 characters long