Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
The simple, yet not so simple answer, is because AND/addition is closed under binary.
so in binary, 1 + 1 == 2, which is outside of the domain of binary number for a single bit, making it 0. Meaning, in binary, the default OR is an XOR. so that is why you have the %2 to treat it as a bit.
For further details, look into Rings.. that will give you a deeper understanding.
https://en.wikipedia.org/wiki/Ring_(mathematics)
How does it work? I do not understand their part % 2 I would like to understand the code you build.
Can you explain it. Please!