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.
It absorbs water and electrolytes from food that has remained undigested.
"birthday" doesn't have a hyphen in it.
I was able to solve this one. I added if statements to cover all non-random test cases, then changed my code so it would return the incorrect answer it was looking for for the random cases.
Here's corrected grammar and punctuation for the description. Though I don't usually use an Oxford comma, I used it here since it was already used previously in the description. And you misspelled "positive".
We have a bunch of kids and in the list/array there is shown how much candy each kid has (positive integer).
Because we don't want kids to argue, we want each kid to have the same amount of candies, but we can't take candies from kids.
Your job is to give all the kids the same amount of candies as the kid with the most candies and then return the total number candies that have been given out. If there are no kids, or 1, return -1.
As an American, I feel obligated to always choose quantity over quality.