mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-25 23:08:57 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>请编写一个函数,用于 <strong>删除单链表中某个特定节点</strong> 。在设计函数时需要注意,你无法访问链表的头节点 <code>head</code> ,只能直接访问 <strong>要被删除的节点</strong> 。</p>\n\n<p>题目数据保证需要删除的节点 <strong>不是末尾节点</strong> 。</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n<img alt=\"\" src=\"https://assets.leetcode.com/uploads/2020/09/01/node1.jpg\" style=\"height: 215px; width: 300px;\" />\n<pre>\n<strong>输入:</strong>head = [4,5,1,9], node = 5\n<strong>输出:</strong>[4,1,9]\n<strong>解释:</strong>指定链表中值为 5 的第二个节点,那么在调用了你的函数之后,该链表应变为 4 -> 1 -> 9\n</pre>\n\n<p><strong>示例 2:</strong></p>\n<img alt=\"\" src=\"https://assets.leetcode.com/uploads/2020/09/01/node2.jpg\" style=\"height: 236px; width: 300px;\" />\n<pre>\n<strong>输入:</strong>head = [4,5,1,9], node = 1\n<strong>输出:</strong>[4,5,9]\n<strong>解释:</strong>指定链表中值为 1 的第三个节点,那么在调用了你的函数之后,该链表应变为 4 -> 5 -> 9</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li>链表中节点的数目范围是 <code>[2, 1000]</code></li>\n\t<li><code>-1000 <= Node.val <= 1000</code></li>\n\t<li>链表中每个节点的值都是 <strong>唯一</strong> 的</li>\n\t<li>需要删除的节点 <code>node</code> 是 <strong>链表中的节点</strong> ,且 <strong>不是末尾节点</strong></li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Easy",
|
||||
"likes": 1125,
|
||||
"likes": 1135,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[{\"title\": \"Remove Linked List Elements\", \"titleSlug\": \"remove-linked-list-elements\", \"difficulty\": \"Easy\", \"translatedTitle\": \"\\u79fb\\u9664\\u94fe\\u8868\\u5143\\u7d20\"}]",
|
||||
@@ -113,7 +113,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"278.7K\", \"totalSubmission\": \"324.7K\", \"totalAcceptedRaw\": 278652, \"totalSubmissionRaw\": 324708, \"acRate\": \"85.8%\"}",
|
||||
"stats": "{\"totalAccepted\": \"285.3K\", \"totalSubmission\": \"332.3K\", \"totalAcceptedRaw\": 285341, \"totalSubmissionRaw\": 332345, \"acRate\": \"85.9%\"}",
|
||||
"hints": [],
|
||||
"solution": {
|
||||
"id": "99",
|
||||
|
||||
Reference in New Issue
Block a user