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.
Yes. Exceptions shouldn't be used for flow control. In a real setting, you'd probably parse it as a long (and possibly catch that exception) then check the size for the actual type.
That being said, it is really easy to see what is happening, which is good.
And it looks pretty. :-)
Wouldn't the code be slower because of the try-catch check?
just for arguments sake, i wouldnt make human an interface since men and women share attributes, not just behaviors
But since there is no test for this case you could submit a solution that doesn't return 0 if all numbers in the list are negative.