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.
If you have a look at the first line of the function, you will know.
This language gets dirtier each day.
The problem was that in the examle code you used farthestDistance, but the tests expected furthestDistance instead. This is misleading a bit.
That's why he uses COUNT(s) instead of SUM(s)
This one times out for me.
I think it has been not corrected in the tests.
Is it the same algorithm that strrev uses? Is there a site where I can check the algorithms behind core functions?
My solution was almost like this one, but instead of adding the keys, I just used 'not at all' as the first element of the array :D
That single test case with price = 0 killed me :D
What if the input is a boolean?
Instead of 'break', you should use 'continue'.