You are viewing a single comment's thread. Return to all comments →
#python def maximizingXor(l, r): m=0 for x in range(l, r+1): for y in range(x, r+1): xor=x^ y if xor>m: m=xor return m
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 →