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.
Is it the problem of case of donation = 0?
Only positive donation should be return.
May I ask about the error cases. I am using c#. I have not idea how to return the error.
ErrorTests:
Expected: <System.ArgumentException>
But was: null
I return -1 now but got this result. Can anyone help?
If there is a little different of the numbers, you may check of your rounding method.
I understand what do you mean. I am not presenting well. I agree that it is the best way for the computer to run.
I just want to say that not all know this method. It also require your math skill.
Not everyone has good math skill, but this method is the most fast way and clever.
This comment is hidden because it contains spoiler information about the solution