I think it's ridiculous.
Not a kata issue~~ Modify ur algorithm
Not a kata issue~~ I believe u alr solved it
Not a kata issue~~
Thx guys, now it works! I guess that focus on Python made me too loose on declaring let/const inside the function. Will keep it in mind :)
The kata is completable by avoiding the globals, but please fix when you can. I need to go to sleep.
yup, that was it... x) the loop missed its let declaration... Corrected
fucking JS... XD
I'll edit the kata, lemme some time if you're not already on it.
@smokedsalmon You have many variables in global scope, i for example. And the test also uses i and it's global. That should be the reason for the crazy number of tests.
wow... reproducible bug... Crazy. I'll try to see if I can get the reason for it. I'll keep you posted.
That it why I am suprised to see the result above. I have JS chosen as language, test cases are passed successfully. But once I press attempt this strange error appears.
Someone mentioned below the problems while submitting the solution - maybe the same case here.
it's not JS, or you're in the wrong kata discourse... XD -> only 50 random tests, here.