XOR profit problem

Test CASES are failing

hello @Suyash-Anand-133893971411821
pls save ur code here->https://ide.codingblocks.com/
and share its link with me

HELLO sir???

have u got the problem?

ignorethis. . . .

HEllo???

yes . . . . . . . . . . . . . .

check only for first 32 bits (numbers are in range of int)

u r doing 1<<63 (it exceeds the int range thats why u r getting different output)

still getting wrong answers

please helppppppppppp

pls wait , i m checking

check now->
instead of checking two conditions , what u can do is u can compute their xor and then check the first set bit from left.

that checking part is crazyy good

Thank you sir for the help

check urs as well ->

just added brackets around conditions to avoid any precedance issue.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.