You are viewing a single comment's thread. Return to all comments →
Python:
def maximizingXor(l, r): return (1 << (l ^ r).bit_length()) - 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 →
Python: