You are viewing a single comment's thread. Return to all comments →
In the spirit of this solution, here's one in Python:
(1 << (len(format(l^r, 'b')))) - 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 →
In the spirit of this solution, here's one in Python: