https://www.codechef.com/submit/GRAYSC

https://www.codechef.com/viewsolution/36091863
the code giving me wrong ans.Though I have used the approach told by the prateek bhaiya as it is said in the course vedio.

@hrit04 for binary search the array must be sorted

https://www.codechef.com/viewsolution/36127787
I have sort the array before apply binary sort but still getting wrong ans.

@hrit04 please try to find the 4th number also with a for loop only, maybe XOR isnt working properly for bigger numbers

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.