This solution together with the solution of James' (or mine) exhibits a nice duality between the "top-down" and "bottom-up" approaches.
3968 Solvers
4013 Solvers
199 Solvers
Find the stride of the longest skip sequence
108 Solvers
Side of an equilateral triangle
2906 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!