Recursive reverse prints one more node at end
Hi Yuvraj… u are building the linked list only wrong… u are inserting at head… while u should be inserting at tail…
why is an insertion at head wrong
it changes the order…
linked list should be suppose 1 2 3 4
but due to insertion at head it becomes 4 3 2 1
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.