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.
thanks, was not understanding the initial question
Description should explicitly state that there is only one space between words. Otherwise, some of the solutions listed are wrong.
It took me a while to really get the hang of how to use this IDE tool and to understand what was going on. The tests do not mention extra spaces, so I couldn't see that I was returning unnecessary extra spaces at the end of each tested and reversed phrase.
Just not worded very well...
Suggestion:
Write a function that will take one argument, a string, as a word or sentence. The function should return the original string except reverse any word that has five or more letters. Strings passed in will consist of only letters and spaces. Spaces will be included in the result only when more than one word is present.