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.
Oh, I thought makeNew was the amount of leftOvers each case started with. I'll try and solve it again, Thank you very much!
This comment is hidden because it contains spoiler information about the solution
For some reason my algorithm only works for the first sample test where Test.assertEquals( candles(5,2) , 9).
I have coded exactly the algorithm that is described in the assignment.
Is there any way I can share my code, so perhaps someone can see if it contains any errors? I've spent ages looking at it and I can't find any mistakes.
Could the test be wrong?
Thanks in advance
This comment is hidden because it contains spoiler information about the solution