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.
Get the area codes from a list of phone numbers
537 Solvers
213 Solvers
Compute a dot product of two vectors x and y
754 Solvers
How many days does the cat take to climb out of the hole?
64 Solvers
2212 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!