You are viewing a single comment's thread. Return to all comments →
It is possible to make a solution O(b) where b is the position of the most significant bit of R
O(b)
b
R
Hint: L=7,R=8, and mostSignificantBit.
L=7,R=8
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 →
It is possible to make a solution
O(b)
whereb
is the position of the most significant bit ofR
Hint:
L=7,R=8
, and mostSignificantBit.