@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.
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.
I am getting this error: "Time: 1856ms Passed: 41391 Failed: 0 Exit Code: 137. Max Buffer Size Reached (1.5 MiB)."
I use replace method and left/right indexing, so the solution should be pretty efficient (both in time and space comlpexity).
Any ideas on cause of the error or potential improvements?
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... Correctedfucking 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 usesi
and it's global. That should be the reason for the crazy number of tests.8o
wow... reproducible bug... Crazy. I'll try to see if I can get the reason for it. I'll keep you posted.
mmmh.... :/
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.
Javascript. Nothing is printed to the console
Which language? Are you printing too much to the console?
I am getting this error: "Time: 1856ms Passed: 41391 Failed: 0 Exit Code: 137. Max Buffer Size Reached (1.5 MiB)."
I use replace method and left/right indexing, so the solution should be pretty efficient (both in time and space comlpexity).
Any ideas on cause of the error or potential improvements?
Loading more items...