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.
Why don't they just post it, every time? Why have the guy who doesn't have the problem do the work? How else will the guy who does ever learn?
I've said it a thousand times: "Help us help you."
Fixed
Tests generate 0, 1, and 2, and the solution makes negative values.
Also, the actual and expected are reversed, but apparently you figured that out.
I'll fix this.
@rowcased: You don't have to ask that every time, check one's profile first (if multiple languages, then if they've completed it like in this case, you can find the language under their solutions).
Java.(both answered at the same time)to which language are you referring?