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