+ 1
You are not increasing the index when str[i] is not a white space.
28th Mar 2022, 7:31 AM
saurabh
saurabh - avatar
0
Manav Roy I think this is the you are expecting to happen.... https://code.sololearn.com/ctGb3hkqvrcT/?ref=app If yes, please lemme know
28th Mar 2022, 7:41 AM
saurabh
saurabh - avatar
0
Manav Roy yes, Also i mentioned the change in code by comment '//change'.
28th Mar 2022, 8:00 AM
saurabh
saurabh - avatar