Simple: return a negative number without using the '-' sign.
Solution Stats
Problem Comments
4 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers69
Suggested Problems
-
Return the largest number that is adjacent to a zero
5514 Solvers
-
Back to basics 21 - Matrix replicating
1789 Solvers
-
Get the elements of diagonal and antidiagonal for any m-by-n matrix
512 Solvers
-
294 Solvers
-
Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
955 Solvers
More from this Author11
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
JD, I think I figured out why Binbin and I (and more than likely a good number of other players) are having issues with your test suite. I think your "assert(isempty(strfind(filetext, '0')),'0 forbidden')" line is catching everyone who has the digit 0 in their MATLAB ID number. Binbin and I have that, while you do not. I just hacked the test suite, and tried a non-hacking correct answer from Alfonso...with the same result - my solution failed because 0 is forbidden.
this is still true while the only diff is this is a badge problem now . Please fix
The offending line—asserting lack of '0'—has been commented out.
Thanks goc :)