I've improved grammar in this problem and updated it with a test case ensuring that the det() function is not used. Rescoring of previous answers will take time to propagate, though
I also modified the test suite to check for sums of absolute errors under a threshold value rather than isequal(), since that can fail when the answer isn't composed purely of integers.
I see you! :)
Refactor?
Get the length of a given vector
3562 Solvers
Getting the absolute index from a matrix
211 Solvers
Rotate input square matrix 90 degrees CCW without rot90
380 Solvers
Replace Nonzero Numbers with 1
178 Solvers
248 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!