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 is O(n 2)
One liners are fine, but with the prices of electricity, this function isn't very safe to run xD.
A const where you'd save the min would be a good first nudge in the right direction.
Also the calculation of Math.min could be stored in a variable
This comment is hidden because it contains spoiler information about the solution
I thought this is the most clever one?
why not guys?
i was thinking the same thing :)
Wow, this is horrible. O(n³)?
yea right xD
I really like what's going on inside the reducer.