Ad
  • Custom User Avatar

    I think the thing is that you forgot the case where string ends with a space. The result looks right but it's missing a space I had the same problem. I don't like this edge case it breaks the beauty of the code. But whatever

  • Custom User Avatar

    Post your code marking your post as having spoiler content and to increase the readability of comments or descriptions, see this page in the github wiki.

    JavaScript Completions 8351

    I doubt there is a problem with the javascript tests with that many completions. I've improved them anyway, now you can see what is the expected result and what is your function returning, and added some "random" tests.

  • Custom User Avatar

    This is a CW bug. You should try resubmitting your solution, although, for some users it may not work as well.

  • Default User Avatar

    Try submitting again. It happens occasionally: https://github.com/Codewars/codewars.com/issues/1592