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.
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
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.
thank you, this has gotten me much closer to passing, I am now only missing/messing up 1 piece
@chrono79 that makes perfect sense, step 1 is working, but I never implemented step 2
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