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.
This comment is hidden because it contains spoiler information about the solution
Thanks for explaining this. I was trying to wrap my head around what all this algorithm is doing.
Nice solution! Very easy to understand.
Thank you sir. Bitwise operators is something I'll need to study up on.
that's a parity check for
num
using the bitwiseAND
operator. it works the same asif not num % 2:
.Thanks for the thorough explaination but could oyu explain what "if not num & 1" does?