nice (and difficult) problem! (if possible, please fix the testsuite adding something along the lines of "assert(n==numel(unique(c)))")
example of invalid solution
1762 Solvers
510 Solvers
71 Solvers
Pythagorean perfect squares: find the square of the hypotenuse and the length of the other side
42 Solvers
62 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!