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.
Okay I found it, we have to use completing the square...thanks
This comment is hidden because it contains spoiler information about the solution
Add a test case which is cap = 100,on = 50,wait = 40.
The value return should be 0.
What if the cap = 100,on = 50,wait = 40?
The number return will be -10.
It supposed to return 0 as Kata Description said.
Any explanation or related topic to be shared for searching?
Any explanation why this is the best practice?
This comment is hidden because it contains spoiler information about the solution
agree with you. Why everyone is keep upvoting? The community in codewar seems not that alert with extreme cases.