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 made me laugh out loud
Ha, it took longer to load the kata for me than to complete it. then again, maybe its my wifi :)
Was about to say... :p
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
You're supposed to return a number.
(Naw, but on a slightly serious note, this is a bit easy.)
I'm not sure why everyone is saying this is too easy. It took me almost an entire day to write a working solution.
This comment is hidden because it contains spoiler information about the solution
Yet again, truly a thing of beauty. I tried, but I fear I just can't compete!
Best. Solution. Ever.
As others have noted, the name of this kata is something of a misnomer if its solution allows for both negative and float values. You really should have added test cases for both float and negative. Yes, there is chance entire array will be negative, but you can always told user to handle this case by returning null.