136. Merge Two Sorted Lists
Read two sorted lists, n and its values, then m and its values, and
merge them into one sorted list, printing the result.
Print Empty if both are empty. Merge by relinking the existing nodes in one pass rather
than collecting the values and sorting.
Constraints - `0 ≤ n, m ≤ 100000` - `-1000000 ≤ value ≤ 1000000` - Both lists are sorted ascending.
Input
The first line contains n, then a line of n integers, the first list.
The next line contains m, then a line of m integers, the second list.
Both lists are already sorted ascending. The starter code builds both lists for you.
Output
Print the merged list from head to tail on ONE line, separated by single spaces, or Empty if both lists are empty.
Hints
Four rungs, in order. The last two open once you have submitted an attempt. A wrong one counts.