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 Solvers931
Suggested Problems
-
Find the alphabetic word product
2874 Solvers
-
Reverse the elements of an array
812 Solvers
-
Create an n-by-n null matrix and fill with ones certain positions
476 Solvers
-
319 Solvers
-
Create a two dimensional zero matrix
442 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!