Position of Xor

when we have find the XOR initially of all the numbers we got the XOR of uniques number in the result,then we find the position of set bit in result, so why we are looking for last set bit position even if we can get earlier

@n.nishchaya2000
hello Nishchaya,
you can use any set bit position to segregate 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.