Not able to retrieve original linked list after reversing it

Hey @souravkhanna227 you won’t be able to get your answer right cause when you call your reverse linked list function recursively, you aren’t updating your old node and with the endo of the node you are also not returning your previous node.
Take this code for reference, and you will find out your mistake https://ide.codingblocks.com/s/331563
Happy to help :grinning:

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.