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

22nd Feb 2023, 10:40 AM
Gemuh Hans
2 odpowiedzi
+ 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’
22nd Feb 2023, 11:14 AM
DavX
DavX - avatar
5th Mar 2023, 7:44 PM
Amr Monsef
Amr Monsef - avatar