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.
i just came here to ask this too
'bitwise op' just removes decimals part,
but Math.floor(...) actually round a number down as it said lately 'mr royce-reed',
so it also behave pretty weird when we working with numbers
which not contains into int-type(border:+-2147483647)
StackOverflow question:
https://stackoverflow.com/questions/13847053/difference-between-and-math-floor
not really
~~
is just shorthand forMath.floor()
and the plus sign is just a plus sign 😝OP did recursion instead of iterating ... slick but hard to read
it's a nested function
This comment is hidden because it contains spoiler information about the solution
However, your solution is more understandable to other people))))