Ad
  • Custom User Avatar

    thanks, was not understanding the initial question

  • Default User Avatar

    Description should explicitly state that there is only one space between words. Otherwise, some of the solutions listed are wrong.

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.