0
What input can make this code fail at some stages
My flowing words code searches for spaces and compares the letter before the space and the letter after the space to make a decision. If they are the same. Then it prints outs true, else false https://code.sololearn.com/cG6unMtg47O6/?ref=app
2 Respostas
+ 3
What a helpful answer haha...
Gemuh:
What about if there are two spaces between words?
What about if the case is different eg 'Test Test'
What about if there is a space at the end of the string? ‘Test test ‘
What about single word input with a space at the start of ‘ test’