Palindrome linked list


one test case is failing

Hello @mehak61

Your code fails on the test case
6
1 2 3 3 2 1
Dry run your code on the above test case to see where the bug lies.
Also at line 104 you should return true and NOT false because an empty linked list is a palindrome.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.