Definition for singly-linked list.
Warning
This post is more than a year old. Information may be outdated.
Solved at: 220713
Question
You are given the heads of two sorted linked lists list1 and list2.
Merge the two lists in a one sorted list. The list should be made by splicing together the nodes of the first two lists.
Return the head of the merged linked list.
Solution
Comments