Linked List Union
Given two sorted linked lists node0
, and node
, return a new sorted linked list containing the union of the two lists.
Constraints
0 ≤ n ≤ 100,000
wheren
is the number of nodes innode0
0 ≤ m ≤ 100,000
wherem
is the number of nodes innode1
https://binarysearch.com/problems/Linked-List-Union
Examples
Example 1
Input
- ll0 =
- ll1 =
Output
- answer =
Leave a comment