Find Odd Occurring Element

In this lesson, we will learn about an odd occurring element in the given input array.


In this question, every element appears an even number of times except for one element, which appears an odd number of times. The element that appears an odd number of times is our answer.

Let’s see how to achieve this using the XOR operator.

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.