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.
This comment is hidden because it contains spoiler information about the solution
modulo operation was expensive isn't it? it can be done without using module operation at all..
wild
I like your recursive approach. That's something I didn't think of.
This comment is hidden because it contains spoiler information about the solution
you can see his solution... there you will see why
impressive!
People should get into the habit of writing some text in their code for newer people
well it's an
O(n)
solution and there is an obviousO(1)
solutionthat's why it does not deserve its insane 250 upvotes
This comment is hidden because it contains spoiler information about the solution
implied
The collect call doesn't need a turbofish because the collection type is inferred by the return type
Put
into the description may be better
explain further since you aren't making any sense.
Awesome!
Loading more items...