Add tests with 100,1000...
Solutions with ceil are wrong.
function out = HowManyDigits(in)
out = floor(log10(in))+1;
end
Find common elements in matrix rows
1274 Solvers
Find the peak 3n+1 sequence value
1122 Solvers
589 Solvers
Find out missing number from a vector of 9 elements
247 Solvers
449 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!