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
freaking genius
It hurt my self-esteem. How to trust people now? )))
Did the same thing when I realised ha!
You are not alone man
This comment is hidden because it contains spoiler information about the solution
Hi, If you are asking why the popular solution is preferred over yours, it is probably because it is shorter and easier for an experienced developer to verify as correct. Extra intermediate variables that are only used once are often best avoided.
why is this so low :-(?? definitely best way..
neither math nor coding.
good practice is to debug input or w/e wildly => T I M E S A V E R
this makes me feel particularly silly lol. I'm shook
wtf??? HOW?
Anyone like me, hard code this haha. I even put the data in Excel to alter it
This comment is hidden because it contains spoiler information about the solution
I think, it is a good kata to solve it considering possibility of some chaotic touch in the initial data.
Lets say, someone has messed up the initial array and all that "apple-promo recursion beauty" is gone.
I like the kata - though I`ve spent a good 2.5 hrs to tune the loops right so they can work steady.
The point of a kata is to come up with a clever solution to a problem. The realization that lead to this answer is why this kata was written the way it was.
Loading more items...