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.
@DeadPaws are you sure about the output? I've tried it in repl.it and it gave me the expected value.
Check what? Your solution is giving clearly wrong results.
This comment is hidden because it contains spoiler information about the solution
...**3
, you mean...? x)Man, cube is ** 2, however in case of this problem it does not make sense. It just takes more compute time to handle this.
To say the truth you don't need even a cube of a nuber, you can say that if number can be divided by 2 all it's powers can be.