This solution is outdated. To rescore this solution, sign in.
-
1 Comment
Wesley Allen
on 18 Mar 2014
I didn't even think about going the recursive route. Seems obvious now.
Suggested Problems
-
2650 Solvers
-
6752 Solvers
-
Number of 1s in a binary string
10050 Solvers
-
Arrange vector in ascending order
791 Solvers
-
1940 Solvers
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!