Define X(n) = 1 ^ 2 ^ ... ^ n (bitwise XOR). Given L and R, compute X(L) ^ X(L+1) ^ ... ^ X(R). Examples: L=1, R=5 gives 7; L=3, R=4 gives 4.
Unlock detailed company stats for this questionUpgrade
Community answers
No answers contributed by the community yet.
Related courses

Course

