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.
I think you could close the issue by yourself.
so ? :)
Added now!
I think that string concatenation behaves as inefficiently as it does in Ruby in those languages, but not too sure as I did little of them.
Let me know if you think I might help in improving your translation (not sure what sort it had).
It does not seem to me like the current Ruby translation is ready to go: you are basically only testing for spaces, no other whitespaces characters.
Also, your way to generate random strings, if I might add, is very inefficient: instead of concatenating X times a character to the accumulator string, you should use an accumulator array, then finally use a
.join
method to turn it into a string.But that is secondary: right now you should add more basic test cases and have your code generate also cases with other whitespaces characters.