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.
how do people come up with these algorithms???
Not bad but I think the idea is to create Adam and Eve inside the create method
I completed the kata myself but this solution is greek to me. Guess I have a lot to learn
from a golfing perspective idk why you wouldn't just do n * n for squares, saves a whole 2 characters.
n < 0 && !(n % 2) ? -fn(Math.abs(n))[0] : fn(Math.abs(n))[0]
can be simplified to
n < 0 && !(n % 2) ? -fn(-n)[0] : fn(Math.abs(n))[0]
I would love for someone to walk through this
What lvl of algs is needed to get this?)
We have to. You can't mix
Number
andBigInt
, so if your base isBigInt
, your exponent has to be also. ( It's not so exponents can be ridiculously big. :P )Right shift (>>)
what does >> do?
This comment is hidden because it contains spoiler information about the solution