Problem 44270. Assert yourself! Hack the assert function to pass this test.
Have you ever wanted to test out one of those hacks you have seen which "games" the problem by simply overwriting the assert method? Perhaps you have held off in good conscience or in consideration of the difficulty it brings to others wanting to find an actual, correct solution that they can learn from. Well, this question is for you! Please use whatever method you can to pass this test, which is otherwise stacked completely and unfairly against you.
Example 1
y = assertYourself(10,1); % Test is assert(false);
Example 2
[v,y] = assertYourself(rand(10,1), 'blah','eh?'); % Test is assert(false);
See, just not fair.
Note: More unfair test cases added.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers4
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
48190 Solvers
-
1521 Solvers
-
How many trades represent all the profit?
598 Solvers
-
Rotate input square matrix 90 degrees CCW without rot90
600 Solvers
-
804 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!