Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int count(long n) {
- int num = 0;
- if (n)
- do num++; while (n &= n - 1);
- return num;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement