mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-13 11:21:42 +08:00
批量更新数据
This commit is contained in:
@@ -2,20 +2,20 @@
|
||||
|
||||
<p>返回删除后的链表的头节点。</p>
|
||||
|
||||
<p><strong>示例 1:</strong></p>
|
||||
<p><strong>示例 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>输入:</strong> head = [4,5,1,9], val = 5
|
||||
<strong>输出:</strong> [4,1,9]
|
||||
<strong>解释: </strong>给定你链表中值为 5 的第二个节点,那么在调用了你的函数之后,该链表应变为 4 -> 1 -> 9.
|
||||
<strong>输入:</strong>head = [4,5,1,9], val = 5
|
||||
<strong>输出:</strong>[4,1,9]
|
||||
<strong>解释:</strong>给定你链表中值为 5 的第二个节点,那么在调用了你的函数之后,该链表应变为 4 -> 1 -> 9.
|
||||
</pre>
|
||||
|
||||
<p><strong>示例 2:</strong></p>
|
||||
<p><strong>示例 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>输入:</strong> head = [4,5,1,9], val = 1
|
||||
<strong>输出:</strong> [4,5,9]
|
||||
<strong>解释: </strong>给定你链表中值为 1 的第三个节点,那么在调用了你的函数之后,该链表应变为 4 -> 5 -> 9.
|
||||
<strong>输入:</strong>head = [4,5,1,9], val = 1
|
||||
<strong>输出:</strong>[4,5,9]
|
||||
<strong>解释:</strong>给定你链表中值为 1 的第三个节点,那么在调用了你的函数之后,该链表应变为 4 -> 5 -> 9.
|
||||
</pre>
|
||||
|
||||
<p> </p>
|
||||
|
Reference in New Issue
Block a user