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.
Sum all integers from 1 to 2^n
8681 Solvers
Test if two numbers have the same digits
190 Solvers
3262 Solvers
544 Solvers
277 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!