描述
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.
分析
和合并两有序数组基本一样,链表操作还会更简单一点。
代码
Python
1 |
class (object): |
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.
和合并两有序数组基本一样,链表操作还会更简单一点。
1 |
class (object): |
近期评论