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
Duplicate each element of a vector.
find the maximum element of the matrix
Return fibonacci sequence do not use loop and condition
More from this Author9
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!