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.
15403 Solvers
Find a subset that divides the vector into equal halves
336 Solvers
Given a matrix, swap the 2nd & 3rd columns
532 Solvers
432 Solvers
Convert a Cell Array into an Array
445 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!