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.
Probably you messed it up, click reset and try again, it works for me.
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
Seems like your solution managed to pass in the end.
This comment is hidden because it contains spoiler information about the solution
@chrono79 that makes perfect sense, step 1 is working, but I never implemented step 2
Make sure you're not confusing the logs, probably your function is returning 15 for the second sample test.
Please see if you can find anything helpful in this paragraph: https://docs.codewars.com/training/troubleshooting#print-input or in the article in general.
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