Why do you pass n in your function (and not x) ?
Agree with above. According to the description you are given the randomized array.
This solution should be wrong, at least according to the description.
4161 Solvers
Determine Whether an array is empty
649 Solvers
498 Solvers
2567 Solvers
261 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!