mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-22 21:46:46 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>给你两个链表 <code>list1</code> 和 <code>list2</code> ,它们包含的元素分别为 <code>n</code> 个和 <code>m</code> 个。</p>\n\n<p>请你将 <code>list1</code> 中下标从 <code>a</code> 到 <code>b</code> 的全部节点都删除,并将<code>list2</code> 接在被删除节点的位置。</p>\n\n<p>下图中蓝色边和节点展示了操作后的结果:</p>\n<img alt=\"\" src=\"https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2020/11/28/fig1.png\" style=\"height: 130px; width: 504px;\" />\n<p>请你返回结果链表的头指针。</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<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>\n\n<pre>\n<b>输入:</b>list1 = [0,1,2,3,4,5], a = 3, b = 4, list2 = [1000000,1000001,1000002]\n<b>输出:</b>[0,1,2,1000000,1000001,1000002,5]\n<b>解释:</b>我们删除 list1 中下标为 3 和 4 的两个节点,并将 list2 接在该位置。上图中蓝色的边和节点为答案链表。\n</pre>\n\n<p><strong>示例 2:</strong></p>\n<img alt=\"\" src=\"https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2020/11/28/merge_linked_list_ex2.png\" style=\"width: 463px; height: 140px;\" />\n<pre>\n<b>输入:</b>list1 = [0,1,2,3,4,5,6], a = 2, b = 5, list2 = [1000000,1000001,1000002,1000003,1000004]\n<b>输出:</b>[0,1,1000000,1000001,1000002,1000003,1000004,6]\n<b>解释:</b>上图中蓝色的边和节点为答案链表。\n</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>3 <= list1.length <= 10<sup>4</sup></code></li>\n\t<li><code>1 <= a <= b < list1.length - 1</code></li>\n\t<li><code>1 <= list2.length <= 10<sup>4</sup></code></li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Medium",
|
||||
"likes": 43,
|
||||
"likes": 45,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -119,7 +119,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"16.3K\", \"totalSubmission\": \"21.6K\", \"totalAcceptedRaw\": 16258, \"totalSubmissionRaw\": 21593, \"acRate\": \"75.3%\"}",
|
||||
"stats": "{\"totalAccepted\": \"16.9K\", \"totalSubmission\": \"22.4K\", \"totalAcceptedRaw\": 16897, \"totalSubmissionRaw\": 22409, \"acRate\": \"75.4%\"}",
|
||||
"hints": [
|
||||
"Check which edges need to be changed.",
|
||||
"Let the next node of the (a-1)th node of list1 be the 0-th node in list 2.",
|
||||
|
Reference in New Issue
Block a user