Hello everyone, i am a beginner and this is my first question so please forgive any mistakes. I am solving the question herehttps://www.codechef.com/problems/XORNEY. and i have tried alot of changes in the code but i am still getting TLE. Here's my code
} Thanx in advance..! asked 10 Feb, 15:36

See the constraints on $L$ and $R$. They can go upto $10^{18}$. You can't run a loop of these many iterations. Also $T$ is as large as $10^6$. So you need an algorithm which can find XOR of a range $[l, r]$ within constant or logarithmic time. answered 10 Feb, 15:52
