Problem 1547. Relative ratio of "1" in binary number
67.94% Correct | 32.06% Incorrect
Last Solution submitted on Mar 27, 2023
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 Solvers970
Return the largest number that is adjacent to a zero
There are 10 types of people in the world
More from this Author9
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!