Skip to content

Instantly share code, notes, and snippets.

@hilda8519
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hilda8519/7caabe3c452880df7b59 to your computer and use it in GitHub Desktop.
Save hilda8519/7caabe3c452880df7b59 to your computer and use it in GitHub Desktop.
public class Q55{
public static void main(String[] args){
int test1= 0b100111010110;
int test2= 0b011001000101;
System.out.println(numberOfCovert(test1,test2));
}
static int bitSwapRequired(int a, int b){
int count=0;
int c=a^b;
for(c=!0;c=>1){
if(count=c&1){
count++;
}
}
return count;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment