You are viewing a single comment's thread. Return to all comments →
For C#:
int max=0; for(int i=l;i<=r;i++) { for(int j=i+1;j<=r;j++) { int xor=(i|j) & (~i|~j); if(xor>max) { max=xor; } } } return max;
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 →
For C#: