Palindrome problem is giving some errors//// pls check my code its giving error if possible pls tell my mistake don't change the entire code

https://ide.codingblocks.com/s/330299 is showing some error.

@shrutikatyal hey why are calculating first mid and then checking , you can directly find the reverse of the linked list and then compare them by traversing on them.

https://ide.codingblocks.com/s/331514 this is my new code now pls check it still it is giving one error

@shrutikatyal hey you have made some silly mistakes in compare function . Your loop is not traversing . i have corrected your code.

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.