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
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
This comment is hidden because it contains spoiler information about the solution
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.
Haha, same. Had like 30 lines.