mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 07:21:40 +08:00
存量题库数据更新
This commit is contained in:
@@ -7,14 +7,14 @@
|
||||
<p>You must solve the problem in <code>O(1)</code> extra space complexity and <code>O(n)</code> time complexity.</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/03/10/oddeven-linked-list.jpg" style="width: 300px; height: 123px;" />
|
||||
<pre>
|
||||
<strong>Input:</strong> head = [1,2,3,4,5]
|
||||
<strong>Output:</strong> [1,3,5,2,4]
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
<img alt="" src="https://assets.leetcode.com/uploads/2021/03/10/oddeven2-linked-list.jpg" style="width: 500px; height: 142px;" />
|
||||
<pre>
|
||||
<strong>Input:</strong> head = [2,1,3,5,6,4,7]
|
||||
@@ -25,7 +25,6 @@
|
||||
<p><strong>Constraints:</strong></p>
|
||||
|
||||
<ul>
|
||||
<li><code>n == </code>number of nodes in the linked list</li>
|
||||
<li><code>0 <= n <= 10<sup>4</sup></code></li>
|
||||
<li>The number of nodes in the linked list is in the range <code>[0, 10<sup>4</sup>]</code>.</li>
|
||||
<li><code>-10<sup>6</sup> <= Node.val <= 10<sup>6</sup></code></li>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user