欢迎24级新生

2108. LeetCode Merge Two Sorted Lists

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.

输入

Input: 1->2->4, 1->3->4

输出

Output: 1->1->2->3->4->4

提示

合并 2 个有序链表

登录以提交代码。
单点时限 1 秒
内存限制 128 MB
提交 0
通过 0