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.
thank you!)
"v" is unused, it is needed because by default first parameter is current element and second is index.
Nice and readable. Well done.
Doesn't have a place in production code, has to be more readable.
Check my solution, )
I had to work that one out myself. Excellent
NICE!
This is awesome!
When I first saw this solution, I thought it was really clever, so I played with it, it broke, and I wondered why. I thought someone else might be in the same boat, so I took the time to try and explain it as best as I could. Part of understanding this solution is understanding when and when it doesn't work, which is important if someone ever wants to try and use this code in a different scenario. Some people will likely find this helpful, while others won't, and that's all right!
This comment is hidden because it contains spoiler information about the solution
When you know the math theory behind it!
Personally, I saw this solution in a similar kata so that's why I thought of it
I always wonder these "if it was this or this case, this would not work".
The case is described in the kata description and that's what we base our solution on and that's it.
No doubt it is clever, never knew you could do it like this. Thans
Thanks, but I do not see the logic behind it.
Loading more items...