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.
Getting the notification that you received a reply is currently useful in drawing your attention to the thread so that you know the suggestion was resolved. If it were possible to resolve a suggestion/issue without a comment, then the thread members should all be notified that the suggestion/issue was resolved. Otherwise, how would one know without explicitly remembering to look?
Yap, sorry, I've corrected that. Problems of a non-native english speaker...
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Well, it might be slower. But I think that for the purpose of his application it's good enough.
You can always spend more time trying to optimize things, but I think that in this case it is way clearer than to work with lots of indexes, increments or whatever (which was my case).
The simple use of high level functions with his simple algorithm in mind is enough until more performance is actually needed.
Not saying that measuring and comparing performance is not valid at all though.
correct, thanks
forkmonkey: his solution is short, I give him that. But it is in no way fast, especially since he has to reverse() twice in one pass. Please refer to http://jsperf.com/codewars-snail to see actual data on medium sized arrays. Differences will increase drastically if larger arrays are used.
haan, explain your meaning, please.
It might be beautiful, but an algorithmic nightmare :)
This comment is hidden because it contains spoiler information about the solution
Thanks to you both! Of all my kata solutions, this is my favorite.
OMG, yes it is.