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
-
493 Solvers
-
16684 Solvers
-
11686 Solvers
-
1476 Solvers
-
1411 Solvers
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!