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.
Brilliant
Oi mate, brilliantly done. I did something similar but with objects so it was a bit longer.
I have no idea how any of this works.
if you wrote your own min function to get min in the array, you would already know the index and could save the call to indexOf.
if you had trivally saved the value of second smallest during your min function you might also save time if when you add time to the smallest you quickly check if it is still the smallest thus avoid two calls next time thru the loop - no call to min and no call to indexOf
Thanks so much for this!!! I appreciate the explanation. I was lost on this one.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I really have struggled getting this to work on my own.
i agree with that
I didn't even solve it.