Problem 2448. Back to the future
Solution Stats
Problem Comments
-
2 Comments
New hacking series...
Fun !
All these back-to-the-future problems can only be solved with hacks currently. There was a "legit" way to solve them once upon a time, but the author is long gone from Cody's servers. And since he has not updated this in 8 years, it is very unlikely that he will anytime soon.
Solution Comments
-
3 Comments
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
Problem Recent Solvers13
Suggested Problems
-
1857 Solvers
-
220 Solvers
-
Find the maximum number of decimal places in a set of numbers
1995 Solvers
-
Given a window, how many subsets of a vector sum positive
832 Solvers
-
Find the position of first minimum value in an integer array with numbers
172 Solvers
More from this Author8
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!