DEV Community

Discussion on: Bitwise Operators

Collapse
 
ssimontis profile image
Scott Simontis

XOR is handy for programming interviews too. If you ever have an array where all elements are duplicated except for one, you XOR every array element and are left with the answer.

Collapse
 
rpalo profile image
Ryan Palo

Neat!