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);
Seems like cookies are disabled on this browser, please enable them to open this website
Maximizing XOR
You are viewing a single comment's thread. Return to all comments →