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.
forgot about key argument
Nice solution! :)
amazing!
Cool!
Awesome
This comment is hidden because it contains spoiler information about the solution
Why would there be only two values in the array? There are only two different values for the key but that doesn't change anything. Or am I missing something?
Yes. But considering you have only 2 different values in the array...
Isn't this O(n^2)?
Because you need a number that is repeated 1 time, that's why min is used.
how does it work ?
why not max ?