Given a non-negative integer n, return the number of 1 bits in its binary representation (also known as the Hamming weight or popcount).
For example, the integer 11 in binary is 1011, which has three 1 bits.
n = 113n = 1281n = 25580 <= n <= 2^31 - 1Run your code to see results
Use Cmd+Enter to run