mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-12 02:41:42 +08:00
批量更新数据
This commit is contained in:
@@ -10,11 +10,11 @@
|
||||
|
||||
<p><strong>示例 1:</strong></p>
|
||||
|
||||
<p><img alt="" src="https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2020/11/28/merge_linked_list_ex1.png" style="width: 406px; height: 140px;" /></p>
|
||||
<p><img alt="" src="https://pic.leetcode.cn/1709608717-NVGojm-image.png" style="width: 450px; height: 155px;" /></p>
|
||||
|
||||
<pre>
|
||||
<b>输入:</b>list1 = [0,1,2,3,4,5], a = 3, b = 4, list2 = [1000000,1000001,1000002]
|
||||
<b>输出:</b>[0,1,2,1000000,1000001,1000002,5]
|
||||
<b>输入:</b>list1 = [10,1,13,6,9,5], a = 3, b = 4, list2 = [1000000,1000001,1000002]
|
||||
<b>输出:</b>[10,1,13,1000000,1000001,1000002,5]
|
||||
<b>解释:</b>我们删除 list1 中下标为 3 和 4 的两个节点,并将 list2 接在该位置。上图中蓝色的边和节点为答案链表。
|
||||
</pre>
|
||||
|
||||
|
Reference in New Issue
Block a user