You need to test with more than one number. Many attempt (and succeed) with a static vector solution until they are lucky.
When i run the program it says fn is undefined. Please explain
17223 Solvers
Find common elements in matrix rows
1232 Solvers
Find the peak 3n+1 sequence value
1108 Solvers
130 Solvers
432 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!