This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
The Test Suite should include a check using random integer inputs to prevent simple indexing to generate a solution.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!