0
(SOLVED) Palindrome Checker Mystery? đ¨
Palindrome is a word that the arrangement of letters will remain same if we rearrange it in opposite direction. Eg; BOB, NOON, RACECAR, etc. This thing is in the Code Coach with title "Its a Sign" sort of. Input 4 string, seperated by space. Will output "Open" if at least 1 palindrome among the 4 strings. Will output "Trash" if no palindrome among the 4 strings. The thing is, ive failed these specific combination: ABBA NEVERMIND FANCY WINDOW which supposely output "Open" as "ABBA" is a palindrome but "Trash" become the output instead. Other combination works well. I even try ABBA ABBA ABBA ABBA and tge output is correct "Open". Is there anything wrong with my code or the combination? https://code.sololearn.com/cQZqMVKy9klP/?ref=app
5 Answers
+ 2
Owh i see. Thanks so much.. đ
+ 1
~ swim ~ thanks. It works. As ur r mod level, i assume u have lot of knowledge of course.
May i know why it works with other combination without putting that line? Hope u can explain in not to complex way haha. Im a newbie.. đ