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.
Done
you should mark this issue as resolved.
You might also look up the time complexities for the data structures you are using. That's what caused inefficiencies in my case.
About 30 tests. You need a fast prime generator.
Great!
Could you finish the kata now?
Seen that - I think you beat me in speed by mere seconds, minutes at best!
Thanks, GiacomoSorbi, for your comment and the fix for ruby and python!
In JS I "fixed" it by calling the expected-function before the user-method. The function for the expected value doesn't change the array. ;-)
It is still bad practice to change the array when not necessary, so not sure if it should be more actively discouraged; I fixed the same in Ruby and Python, for JS consider you can easily duplicate a simple array
arr
with[].concat(arr)
.Thanks for reporting this problem! :-)
Which language do you use? After a view on your solved kata i would suppose it was "JavaScript."
I think I found the problem: Your code changes the given array. Not nice, but also not forbidden.
I fixed the tests. So now it would be ok, that your solution changes the array.
Please try again.
I am having the same issue. I don't know if I am reading it wrong.