Same issue here as in your third problem. Please check the absolute value of the differences of the computed values with the correct ones. Otherwise, more silly answers (again, like this one :-) will slip through!
Thanks for the catch. I've updated the test suite to check against upper and lower bounds of each answer.
436 Solvers
Sum of diagonal of a square matrix
1333 Solvers
237 Solvers
5805 Solvers
269 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!