Merge Two Sorted Lists

Solution Code

Time Complexity

O(N + M)

Space Complexity

O(1)