MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn moreOpportunities for recent engineering grads.

Apply Today*Simply return the name of the coolest numerical computation software ever*

**Extra reward** (get a *freepass*):

As an additional reward, solving this problem correctly a few times in a row will grant you a temporary **freepass** for **any** other Cody problem. To cash this freepass follow these steps:

- First solve this problem correctly five times in a row
- Then visit the Cody problem that you wish to solve, click 'Solve this now', and enter within the function body of your solution the line:

freepass.please;

and cody will accept that solution as correct (don't believe it? give it a try; note: freepasses have a relatively short lifespan -less than an hour-, repeat these two steps as needed.)

**Fineprint**:

1) *How many times do I need to solve this problem to get a freepass?* Short answer: around five.

Long answer: at any given time, Cody has around 5 servers running solutions (sequentially or randomly, not quite sure). Every time that you solve this problem a *freepass* is issued for the particular server where your solution was evaluated. When you run a *freepass.please* solution, if that solution is run in the same server where a freepass was issued your solution will pass, otherwise you will get an "undefined variable freepass" error. So if you solve this problem just once, you may need to run your `freepass.please` solution a few times (on average 5) until you hit the same server again and get a passing grade. Alternatively you may want to solve this problem a few times in a row (around 5) first in order to fill *all* current servers with freepasses, and this would then give you a passing grade on the first attempt of a `freepass.please` solution. This will also leave some extra freepasses for your fellow Cody players :)

2) Your correct solution will get a score of 100 (this is typically high enough so that we do not troll the score lead with these freepasses)

3) Feel free to explore this problem testsuite to see how this works, but please respect some basic courtesy guidelines if you decide to implement your own (e.g. the service does not interfere with the normal Cody operation; it cleans up after itself; don't use it to get a leading score; etc.) Comments and suggestions for improvement are appreciated!

4) This *freepass* service is 'likeware'. Please 'like' this problem if you liked the code or enjoy using your freepasses :)

1404 correct solutions
349 incorrect solutions

Last solution submitted on Jan 28, 2016

31 players like this problem

1 Comment

Sreenath Sivadas
on 14 Jul 2015

cool..
:P

12 Comments