A approach to solve the LL palindrome problem

sir cant we just store all the elements of the LL in a array and then check if that array is palindrome or nottakes o(n)
time takes o(n) time complexity

hey @pankajsingh yes it is possible to do it, but it is recommended to solve the question using linked list only as it’ll help build up the concept.

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.