Popcount

Count the number of 1 bits (set bits) in the binary representation of a given integer n. Return the total count.

Examples
Input: 11
Output: 3
Hints
Related Problems

Popcount

Count the number of 1 bits (set bits) in the binary representation of a given integer n. Return the total count.