Very sneaky noticing this pattern in the answers.
Make the vector [1 2 3 4 5 6 7 8 9 10]
36223 Solvers
1231 Solvers
Make a run-length companion vector
520 Solvers
284 Solvers
207 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!