You are viewing a single comment's thread. Return to all comments →
int n=32-Integer.numberOfLeadingZeros(l^r); System.out.println((int)Math.pow(2,n)-1);
Maximizing XOR
You are viewing a single comment's thread. Return to all comments →