what if the result which is the xor of all numbers contains more than 1 set bit , for eg. result is of the form 0011 and the what will you do
More than 1 set bit
@deepaknike032 You just have to find the position of the rightmost set bit of the XOR result and then build a mask accordingly.
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.