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.
Reported as issue.
Yes. This is it. Generating a huge range this way just isn't going to work, apparently. The
.slice()
doesn't help, but I don't know if that's the actual problem.would be more understandable, and more efficient because of no
.slice()
, than your code. I had to do some very careful reading to understand how that worked. It's ingenious, but not very flexible or maintainable.Sadly we can't downvote the best practices... But this solution does not work, and should not be accepted as a proper solution.
You're absolutely right.
This solution should not work with "baconnnnnnnnnnn" and "bacon".
Ok, its the size of the array generated.
Are any function similar to Python "xrange" for Javascript?
This comment is hidden because it contains spoiler information about the solution
Test cases should include floats and negative numbers.