New hacking series...
Fun !
you are apparently using some cool/sophisticated checks in secret_solver to avoid hacking attempts, but in my opinion it might be safer to just leave the checking of whether the solution is correct or not to your .p function itself, instead of having your .p function return the correct value (e.g. something like testsuite in http://www.mathworks.com/matlabcentral/cody/problems/1969-self-description)
The code is actually doing what it says it is doing, nothing fancy in there. But you are right, for the next one I will take the approach in [Alfnie1969]. Thanks!
Next one is out! http://www.mathworks.com/matlabcentral/cody/problems/2449-back-to-the-future-ii
17513 Solvers
962 Solvers
Remove from a 2-D matrix all the rows that contain at least one element less than or equal to 4
140 Solvers
Matlab Basics - Pick out parts of a vector
198 Solvers
44 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!