+ 1

Palindrome string

To check the string is palindrome or not https://code.sololearn.com/c1rKv2KY2Wbx/?ref=app

1st Dec 2021, 10:13 AM
Suraj Patil
Suraj Patil - avatar
3 ответов
+ 6
Suraj Patil , not a mistake, but there is a string variable 'i' declared that is never used. you can remove this line (line 15)
1st Dec 2021, 11:51 AM
Lothar
Lothar - avatar
+ 1
Line 16: if( original == str ) * Code had been modified from its origin.
1st Dec 2021, 10:16 AM
Ipang
0
Actually,when I ran the code it worked perfectly. Would you specify where the problem is?
3rd Dec 2021, 3:01 AM
Joseph Fruin
Joseph Fruin - avatar