Ad
  • Custom User Avatar

    Oh, I thought makeNew was the amount of leftOvers each case started with. I'll try and solve it again, Thank you very much!

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution