this solution fails for max_n equal to any power of 10.
I have updated the test suite to test for when n = 10 and max_n = 100 and tried to rescore all of them so far.
17210 Solvers
2240 Solvers
Generate N equally spaced intervals between -L and L
563 Solvers
505 Solvers
Sum the 'edge' values of a matrix
232 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!