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.
gamer
this code literally doesn't work. why is this upvoted lmao trolls.
https://i.imgur.com/xb0VUm2.png
Okay, how about "Sum math"
I don't think there's a real name for it. Also, the math isn't too complex. Maybe it's just "Loops are too slow"
Fair enough. Any suggestions for a kata name?
Okay, I added another initial test that fails on your code
Right, duh. ty
But I do still have to copy paste over the solution? I can't somehow reference the actual solution block's scope?
How do I use my solution code in my test block?
I want random tests. So I need my solution function. Do I just have to copy paste over my solution code and give it an obscure function name so people can't guess it and say
myFunc = secretSolutionFunc
Yeah I was worried about cheaters. They could just keep putting if statements
if(n==10 && m==5) return 20
But good idea, I can easily make the tests random everytime.
That would be really cool! But probably not reliable. If they upgrade or downgrade server speed, all the numbers will be off. Plus the
ms
is not reliable in the first place. But I like the idea.I googled the definition of
equation
and realized it's totally wrong. It's afunction
, not an equation.Cool, thanks
Sorry I broke your code!
equation
was the wrong word for the function's name. Thanks for beta testingTest Failed: Expected: 24, instead got: 23.076923076923077
What? Am I supposed to do some kind of rounding?