Loading...
Loading...
Loading...
Every order id in a log appears twice, except one that was logged only once. Print that id.
Example
Input
5 4 9 4 7 9
Output
7
The 4s and the 9s are paired.
Try the problem first. Open one hint at a time.
XOR of a number with itself is 0.
XOR all the ids together; pairs vanish.
Write your Python code, run it on the examples and submit it to hidden tests.
Solve in the editor