Ad
  • Custom User Avatar

    What the description means, is that you need to find the number of 1's in a given integer's binary representation (Binary representation being what the given integer is in 1's and 0's). In the case of 1234, it has a binary representation of '10011010010'. There are exactly 5 1's to be found in the integer 1234's binary representation: 1 00 11 0 1 00 1 0, so it returns 5.