Find non-repeating element in the array in python using XOR. Bit manipulation problem-2.

preview_player
Показать описание
Learn how XOR can be used to find a unique element in an array in python.
Рекомендации по теме
Комментарии
Автор

If we have test case(1, 1, 1) then how it will work

Teja-sfjw
Автор

And also in some cases like (-1, 2, -1, 3, 2) answer is 3 but in othercase(-1, 2, -1, 3, 2, 2) answer we are getting is 1

Teja-sfjw