-
3 Comments
Dyuman Joshi
on 22 May 2021
Not sure why this fails, can anybody tell why?
Largest number in the test case is smaller than 1e16, this should work
ChrisR
on 22 May 2021
Dyuman, your code misses a few powers of 2, for example, for the later tests.
Dyuman Joshi
on 25 May 2021
Thanks, found the insufficiency of the method
Suggested Problems
-
Number of 1s in a binary string
9712 Solvers
-
Set the array elements whose value is 13 to 0
1378 Solvers
-
15734 Solvers
-
140 Solvers
-
73 Solvers
More from this Author292
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!