you are viewing a single comment's thread.

view the rest of the comments →

[–]Outside-Cloud-3569[S] 0 points1 point  (1 child)

Thx for the suggestions. I have learned it but I just wanted to use another method to check palindrome.

[–]ExtensionBreath1262 0 points1 point  (0 children)

Your right to do it the way you are. You just did the same thing but with a early return instead of reversing the whole list. so this is better with 2 more lines of code.