Palindrome Code review

Better coding approaches ??? or Coding Convention

@Vikaspal hey ,yes there is better approach than this ,you dont have to change ll to number,check this:
1) Get the middle of the linked list.
2) Reverse the second half of the linked list.
3) Check if the first half and second half are identical.
4) Construct the original linked list by reversing the second half again and attaching it back to the first half

@rishabhmahajan546 okay got ur when the second half is same as the first one we got to know the linked list is palindrome and return true then there is no need of the 4 steps

@Vikaspal yes bro that’s the logic

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.