You are viewing a single comment's thread. Return to all comments →
def maximizingXor(l, r): na=[] for i in range(l,r+1): for j in range(l,r+1): na.append(i^j) return int(max(na))
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 →