computeBinary(6) ==> "110"
computeBinary(5) ==> "101"
computeBinary(5) ==> "0101" (incorrect)
computeBinary(5) ==> "101" (correct)
input/2
and input%2
as input paramters.
public static String computeBinary(int val) { }
C
Java
Python