The description was improved and the test suite fixed.
The test suite needs to be fixed so it can admit a tolerance in the solution since it is using floats. Currently MATLAB has the function movmad, but even with it, and using round the last case of the test suite fails.
The test suite has had a tolerance applied.
1432 Solvers
Project Euler: Problem 5, Smallest multiple
409 Solvers
Vectorize the digits of an Integer
271 Solvers
Generate N equally spaced intervals between -L and L
570 Solvers
07 - Common functions and indexing 2
328 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!