Ad
  • Default User Avatar

    the 'Test' tests are broken for this kata...if your solution is correct and you hit the 'Test' button you will get an error, but if your solution is correct and you hit the 'Attempt' button without testing first your solution will pass

    Kata was done in Javascript when this issue was encountered

  • Default User Avatar

    I struggled at first and then once I understood the problem it was super easy (to pass basic tests at least).

    look at the example... [48, 75]:

    The "sum of 'n'" is equal to "'m' + 1"...or, put another way... 'm' is equal to "(sum of 'n') - 1 ".

    I hope this helps without it being too much of a spoiler.

  • Default User Avatar

    thank you, this has gotten me much closer to passing, I am now only missing/messing up 1 piece

  • Default User Avatar

    @chrono79 that makes perfect sense, step 1 is working, but I never implemented step 2

  • Default User Avatar

    attempting this in JS, I can console log and get the correct answer for test cases, however, when I return, I get a completely different result. It makes no sense, using 16 as the input, I literally print with: console.log(result); and get 7, but if I: return result; I get 15