You are viewing a single comment's thread. Return to all comments →
int maximizingXor(int l, int r) { int x = l ^ r; int c = 2; while (x >>= 1) { c <<= 1; } return c - 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 →