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.
correct
This comment is hidden because it contains spoiler information about the solution
0 / 2 = 0 with remainder = 0
I think this solution should be quite cost effective.
The Kata conditions says: "If the input array is empty consider it as: [0] (array with a zero)." Does this solution complies with aforementioned statment?
I am started learning Java recently (just started 4 chapter of Core Java: Fundamentals by Cay. S. Horstmann) and with all my recently earned knowlendge I spent half a day on this problem. As I submited my solution and it was approved I was so happy... for a moment, before I started reading most voted solutions. Now I'm feeling down...