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.
Your solution needs to allow for test cases where there are multiple spaces between words
👍
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.
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.
You don't need to wrap your answer in quotes. Is the word "None" in your example part of your return value?
Hint: Don't assume there is always going to be a single space between words
Don't assume there will always be a single space between words.
The most common mistake people make with this kata is assuming that there will only be one space character between words
The usual reason people fail this kata is because they assume there will only ever be one space between words.
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!
There are two spaces between each word - make sure both spaces are retained in your return value.
be careful npot to accidentally add a space at the end of your string e.g. ".god " instead of ".god"
Check the spaces in the string you are returning. You may find that you have an additional space character...
Looks like you might have an extra space after the last word in your answers? e.g. "elppa " instead of "elppa"
The original string has double spaces between words and they need to be preserved in your answer.
Loading more items...