21. Merge Two Sorted Lists
Basic linklist operation.
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.
Example:
1 | Input: 1->2->4, 1->3->4 |
Soulution:
1 | class Solution: |