Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static int goo(int x, int y) {
- int z = x & y;
- int count = 0;
- while (z != 0){
- count += z & 1;
- z >>= 1;
- }
- return count;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement