Problem 1547. Relative ratio of "1" in binary number
Solution Stats
Problem Comments
Solution Comments
-
1 Comment
Gregory Fenn
on 9 Dec 2020
The problem says the input is a positive integer but the first test inputs 0. In my code that caused r = 0/0 error. Please change the wording to "input is non-negative".
Problem Recent Solvers801
Suggested Problems
-
1838 Solvers
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1208 Solvers
-
Project Euler: Problem 3, Largest prime factor
916 Solvers
-
513 Solvers
-
Return fibonacci sequence do not use loop and condition
389 Solvers
More from this Author9
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!