
LinkedList, Easy
Question
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:
|
|
Answer
|
|
Running time: O(n), 16ms

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:
|
|
|
|
Running time: O(n), 16ms
近期评论