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.
Wrong. I tried many solutions and all passed without problems. You are timing out because your code is too slow!
There are many more tests when you "ATTEMPT" (110 tests) againt only 5 in "Sample tests".
Edit: I modified the JS translation and used "assert.deepEqual" but unfortunately your code is still timing out.
Hi im new here so im not sure how these tests work
i solved the kata on javascript but im getting timed out. i read is due to assertDeepSimilar test is deprecated. If i change it to assertDeepEquals on the sample test box the code is passing.
However, this works only for TEST button, not ATTEMPT so i cant submit my solution.
Any help please?
I have been having the same issue 337 and 347 arent the first prime numbers with a gap of 10 307 and 317 are both prime numbers with a 10 gap, Im kinda new to codewars can I just change these tests myself and turn it in or what do I have to do?And these tests are correct. You could've explained why you think they're incorrect, but since you didn't I can close the issue. The first example is explained in description too...
Sure. The tests that expect a wrong result are:
Test.assert_equals(gap(6,100,110), None)
Test.assert_equals(gap(10,300,400), [337, 347]).
I don't see why this could be a language problem.
Your issue report is too vague, could you tell exactly what is it you think should be fixed? Remember to also mention which language you're referring to, sometimes there is a problem with only one.
Basic tests haven't been fixed yet despite people pointing it out since at least few months. And probably I'd check hidden tests as well.
Very clever, just one line :D