I think the problem statement should read "the proportion of bouncy numbers is at least p%", rather than "exactly p%."
Currently, num2str is able to handle all test cases.
Extract leading non-zero digit
1230 Solvers
String substitution, sub problem to cryptoMath
128 Solvers
Longest run of consecutive numbers
2000 Solvers
244 Solvers
162 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!