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.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!