You are viewing a single comment's thread. Return to all comments →
C LANGUAGE::: int maximizingXor(int l, int r) { int max_xor=0; for(int i=l;i<=r;i++){ for(int j=l;j<=r;j++){ int xor=i ^ j; if(xor>max_xor){ max_xor=xor; } } } return max_xor; }
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 →