Radware interview question

1st interview: right a function that receive an array of integers such that every element in the array, except one, appears even number of times. you should find the one element who appears odd number of times. the solution should be in O(n) runtime complexity and O(1) memory complexity

Interview Answer

Anonymous

26 Dec 2019

do XOR over the whole array- the result is the answer