algorithms.tutorialhorizon.com
Number of 1's in bit representation of a number | Algorithms
Write an algorithm to count the number of 1's in the bit representation in given number. Example: Number: 6 Output: 2 ( 1 1 0)