Pascal Wenger, I recommend that you employ "assessFunctionAbsence" — see
https://au.mathworks.com/help/coursework/ug/assessfunctionabsence.html — in your Test Suite to more robustly deal with tricks to sidestep intended solution.
Nice trick to sidestep intended solution!
1172 Solvers
879 Solvers
Number of 1s in the Binary Representation of a Number
359 Solvers
250 Solvers
99 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!