You are viewing a single comment's thread. Return to all comments →
def maximizingXor(l, r): return int( bin(l^r)[2:].replace('0','1') ,2)
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 Single Line Solution...