This solution is correct to within eps, but the test is expecting exact agreement. That is not good programming when dealing with floating point numbers.
2997 Solvers
Return a list sorted by number of occurrences
1514 Solvers
3922 Solvers
234 Solvers
Make a random, non-repeating vector.
2999 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!