Ad
  • Default User Avatar

    Your solution needs to allow for test cases where there are multiple spaces between words

  • Default User Avatar
  • Default User Avatar

    Your solution passes all the tests, so I'm not sure why you think the tests are broken? The author of the open issue from 10 days ago has subsequently solved the kata too, so it's very likely that their report was made in haste.

  • Default User Avatar

    You need to reverse the characters in each word, but the word itself should retain its position in the sentence. So The/ehT should be the first word, and dog./.god the last, both before and after.

  • Default User Avatar

    You don't need to wrap your answer in quotes. Is the word "None" in your example part of your return value?

  • Default User Avatar

    Hint: Don't assume there is always going to be a single space between words

  • Default User Avatar

    Don't assume there will always be a single space between words.

  • Default User Avatar

    The most common mistake people make with this kata is assuming that there will only be one space character between words

  • Default User Avatar

    The usual reason people fail this kata is because they assume there will only ever be one space between words.

  • Default User Avatar

    Enjoyable, but more challenging than I expected for a 7kyu. I'm sure there must be a cleaner solution than mine, but it was a satisfying kata nevertheless!

  • Default User Avatar

    There are two spaces between each word - make sure both spaces are retained in your return value.

  • Default User Avatar

    be careful npot to accidentally add a space at the end of your string e.g. ".god " instead of ".god"

  • Default User Avatar

    Check the spaces in the string you are returning. You may find that you have an additional space character...

  • Default User Avatar

    Looks like you might have an extra space after the last word in your answers? e.g. "elppa " instead of "elppa"

  • Default User Avatar

    The original string has double spaces between words and they need to be preserved in your answer.

  • Loading more items...