mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 15:31:43 +08:00
存量题库数据更新
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
<p><strong>Reverse</strong> the nodes in each group with an <strong>even</strong> length, and return <em>the</em> <code>head</code> <em>of the modified linked list</em>.</p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
<img alt="" src="https://assets.leetcode.com/uploads/2021/10/25/eg1.png" style="width: 699px; height: 124px;" />
|
||||
<pre>
|
||||
<strong>Input:</strong> head = [5,2,6,3,9,1,7,3,8,4]
|
||||
@@ -25,7 +25,7 @@
|
||||
- The length of the last group is 4, which is even, hence the nodes are reversed.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
<img alt="" src="https://assets.leetcode.com/uploads/2021/10/25/eg2.png" style="width: 284px; height: 114px;" />
|
||||
<pre>
|
||||
<strong>Input:</strong> head = [1,1,0,6]
|
||||
@@ -36,7 +36,7 @@
|
||||
- The length of the last group is 1. No reversal occurs.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 3:</strong></p>
|
||||
<p><strong class="example">Example 3:</strong></p>
|
||||
<img alt="" src="https://assets.leetcode.com/uploads/2021/11/17/ex3.png" style="width: 348px; height: 114px;" />
|
||||
<pre>
|
||||
<strong>Input:</strong> head = [1,1,0,6,5]
|
||||
|
Reference in New Issue
Block a user