I can't get the last three cases to work out. I've checked the answers a couple of different ways. I still get 26 1s in the binary for 10^100. Is there a defect in the solutions offered?
The test cases are correct. In case you are using dec2bin, it is subject to loss of significance.
786 Solvers
104 Solvers
Project Euler: Problem 1, Multiples of 3 and 5
1498 Solvers
201 Solvers
171 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!