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
3111 Solvers
Pull the variable y_correct from the Caller's Workspace
65 Solvers
232 Solvers
Back to basics 4 - Search Path
321 Solvers
63 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!