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
Woowww hooww hold on, why the best its O(n^2)
i think so yes
This is great!
you can use '_' instead, it just a placeholder
This comment is hidden because it contains spoiler information about the solution
od
reducer can take up to 4 arguments, you can just omit the last two, which are indices and array. So you can use acc and value of the index.
This comment is hidden because it contains spoiler information about the solution
its just because without it, the functions assumes W is the index and the last parameter is left off. The functions isnt aware of the parameter name, just the location of the parameter within the callback.
very clever, but by far the slowest I've seen in terms of performance
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Generally one can find good and interesting solutions among the top voted ones, but it is not necessary the case of the best voted one.
I suggest you follow multiple highly skilled coders (like akar-0) and instead compare your solutions to them.
Loading more items...