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.
This comment is hidden because it contains spoiler information about the solution
Omg I'm such an idiot, why didn't I think of this. Well done.
I like the usage of recursion, pretty cool solution!
Love it. It's not even in order. This is true madness. 10/10 solution.
magnificent
Read this: https://docs.codewars.com/training/troubleshooting/#works-but-no
https://docs.codewars.com/training/troubleshooting/#print-input Print the input values
a
andb
it'll become evident what's wrong with your code.Somehow I'm passing all 100 random tests but failing a fixed test with this error 'expected -50 to equal -1275'. Not really sure what's wrong with my code or what edge case I'm missing
Fun kata. Definitely more of a math problem but the math isn't even that hard. Look at the sample tests and you'll see an obvious pattern as long as you can do basic addition and multiplication.
Cast this kata into the fire, destroy it!
This was fun to figure out.
Such a simple solution. I can't believe I didn't think of this. I am a shameful developer
This is amazing