Problem 2825. pay it forward

Choose a number (integer between 0 and 65535)

You will pass this problem if you are the second person to choose that same number

Good luck!

How it works

Your function should simply return the number you have chosen. Your solution will always get a score equal to the number you choose (independently of whether the solution passes the test or fails). Your solution will pass the test iff:

1. there is one (and only one) other solution that has obtained the same score as yours

and 2. this previous solution had been created by a different Cody player (it was not crafted by yourself)

Typically this previous solution (from someone else) would be a failed submission (and that is perfectly fine), since at that time it would have been the first solution submitted to get that score. See the testsuite for details.


Typically you will need to cooperate with other Cody players, or depend on their kindness, to be able to solve this problem.

If you prefer to go the 'solo' route any number of hacking solutions would also work (but they are not the intended focus of this particular problem)

Solution Stats

19.38% Correct | 80.63% Incorrect
Last Solution submitted on Jun 14, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers34

Suggested Problems

More from this Author38

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!