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 head forward
Repeat comparison until one list ends
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 compare the heads of the two lists, attach the smaller node to the merged list, and move pointers forward until all nodes are merged.
