Ad
  • Custom User Avatar

    I think you could close the issue by yourself.

  • Custom User Avatar
  • Custom User Avatar

    Added now!

  • Custom User Avatar

    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).

  • Custom User Avatar

    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.