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.
Please, explain to me, why it's done the same work twice here?
Thanks for the explanation
It's faster, too!
The + in +n is called a unary plus operator. By using +n it converts n, a string, into an integer.
Why use (+n) and not directly n?
This comment is hidden because it contains spoiler information about the solution
Please use spoiler flag next time. And your solution is slower/less efficient because you're doing the same work twice.
This comment is hidden because it contains spoiler information about the solution
WOW, very interesting. Tested, working. But can't find info why it is working, can somebody help me to understand?