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,000wherenis the number of nodes innode00 ≤ m ≤ 100,000wheremis the number of nodes innode1
https://binarysearch.com/problems/Linked-List-Union
Examples
Example 1
Input
- ll0 =
- ll1 =
Output
- answer =
Leave a comment