XORNEY - help me with this problem


what’s the problem with this code?
showing wrong answer . its matches with the sample cases.

you used int l,r. They can not store numbers which are as big as 10^18.

Suggetion : use unsigned long long instead of int because it can hold big numbers

Also you are just going on to execute the loop for the 10^18 number which it too large to be executed to time constraints .

try to execute in O(1) time.

if you cant figure out read my solun it is really easy to understan and then try to figure out why this is done so. If you still find and difficulty fell free to repond