Concept Flow - Merge Two Sorted Linked Lists
Create dummy node
Set current pointer to dummy
Compare heads of both lists
Smaller node
Move current and chosen list pointer
Repeat until one list is empty
Attach remaining nodes of non-empty list
Return dummy.next as merged list head
We create a dummy node to start the merged list, then repeatedly pick the smaller head node from the two lists, attach it to the merged list, and move pointers until one list is empty. Finally, we attach the leftover nodes.