HOW to do it using iteration?

HOW to do it using iteration?

Well the suggested approach is the recursive one only as it is simple and easy to understand. And we use merge sort on an array recursively as well.
But if we wanted to merge two sorted linked lists iteratively, we will have to create a new linked list. And add nodes to it one by one, comparing the values of the current pointer variables of the two given linked lists, at each step.

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.