Unable to clr all testcases

why are u applying the concept of binary search over here?? u can simply do it O(N) method using XOR with O(1) space complexity…

is there anything else??

yes sie, XOR will do the work in O(N) time but what if the size of array is very large, and the binary search method is the one shown in the video as well

Actually I don’t have access to the video u are referring to… so maybe go through the video once again…

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.