Some problem solving programming challenges, i have solved. Not all are here, but started adding them slowly.
This project is maintained by chankruze
Count the number of ones in the binary representation of a given integer.
An integer.
An integer representing the count of ones in the binary representation of the input.
9
2
The binary representation of 9 is 1001, which includes 2 ones.
Language | Solution |
---|---|
C | not available |
CPP | not available |
C# | not available |
Python | available |
Java | not available |
Ruby | not available |
Swift | not available |