This solution together with the solution of James' (or mine) exhibits a nice duality between the "top-down" and "bottom-up" approaches.
Piecewise linear interpolation
299 Solvers
254 Solvers
There are 10 types of people in the world
313 Solvers
Sums of cubes and squares of sums
90 Solvers
Highly divisible triangular number (inspired by Project Euler 12)
39 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!