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.
I think that since 2 items are requested, an error must be raised
Yes. Forgive me, I don't know where my head was at. If I could delete comments I would withdraw it.
Dividing 0 by some value would not be an error. In your example the mean would be 0/3 == 0. And also 0/5 = 0. No problems here. Move along.
It should prevent a division by 0 error if sum of contents == 0.
ex.
ary == [0, 0, 0]
ary==[-2, -1, 0, 1, 2]
It looks like the kata only checks for www and naken domains, all other subdomains are treated as the actual domain. It calls it out in the description but its still kind of odd.
D'oh! Definitely an oversight on my part.
Fixed it, now - thanks for the catch!