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
I have to credit this solution for one thing, using an operator I hadn't seen before. I just learned a lot of new operators.
It's actually Math.trunc() and not Math.floor()
For example:
Math.trunc() tries to round the number towards 0
Math.floor() does the same, but towards -Infinity
Yeah, thanks. Just tried it.! Haven't learned bitwise operations yet so it was confusing.
This comment is hidden because it contains spoiler information about the solution
Can you explain the use of bitwise operator? I understand everything until there.