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.
Obviously needs a little polishing, but I like the concept of this one. Of course, I'm someone who adds up the value of the license plate in front of me whenver I'm driving a car, so I'm biased! :)
You are mutating the input array like that, so the next time a test calls your function with a different number the result is wrong.
Copy and paste your function in repl.it like this:
Exactly. You're mutating the input. Don't do that.
This comment is hidden because it contains spoiler information about the solution
You're mutating the input.
Thats because there are test cases that have 1000000000 iterations.
You have to write more 'clever' code.
Infuriating. I have the right answer but I can't submit because of a memory error. Beginning to lose my patience with CodeWars here.
If I run into more katas like this, I'm probably done with CodeWars. It's really unfair to have all the suggested test strings take a particular format (word + number), and only after I've solved for all those to test with random strings that include special characters and jumbled alpha and digit characters. If I had known I needed to solve for strings like this, I would have taken a different approach in the first place. What a waste of time. And if CodeWars will save my work, it's not at all apparent to me how. It seems to me you have to solve these in one sitting, and I'm done with this sitting. Can I not downvote unless I solve? What a shame.