Skip to content

Latest commit

 

History

History
9 lines (8 loc) · 368 Bytes

File metadata and controls

9 lines (8 loc) · 368 Bytes

21. 合并两个有序链表

题目出处
将两个有序链表合并为一个新的有序链表并返回。新链表是通过拼接给定的两个链表的所有节点组成的。

示例:

输入:1->2->4, 1->3->4
输出:1->1->2->3->4->4

答案