Magical XOR: How you can use this trick on your next Coding Project?

Edward Huang
Level Up Coding
Published in
5 min readFeb 1, 2021

--

Provide By Author

XOR is very different from AND and OR. AND and OR is straightforward to understand. I think one of the reasons is probably AND and OR are often used in English words. For instance, when we say AND, it usually meant we want both of the two choices. When we say OR, we typically mean one or the other or both. However, XOR blend AND and OR together to produce what’s called…

--

--