0
[Spoiler]ET Code Coach
Why does this code fail every test case? Am I understanding the output correctly? https://code.sololearn.com/cd4W9fDoZ5WY/?ref=app
2 Réponses
+ 3
Because of int i = word.length().
Index starts at 0. Last index = word.length() - 1.
+ 1
Thanks Denise Roßberg