https://ide.geeksforgeeks.org/Fb5cOUfQox
i have tried the iterative version of merging sorted linked lists but it is showing no output
Merge sorted linked lists
Hey @anitagupta1411
I am not able to understand what u are trying to do
In some part of ur merge function u are printing and in some u are trying to merge on head3 node
And since head3 is null how u are doing head3->data= … or head3->next
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.