mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 07:51:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<p>Return <em>the number of connected components in </em><code>nums</code><em> where two values are connected if they appear <strong>consecutively</strong> in the 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/07/22/lc-linkedlistcom1.jpg" style="width: 424px; height: 65px;" />
|
||||
<pre>
|
||||
<strong>Input:</strong> head = [0,1,2,3], nums = [0,1,3]
|
||||
@@ -11,7 +11,7 @@
|
||||
<strong>Explanation:</strong> 0 and 1 are connected, so [0, 1] and [3] are the two connected components.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
<img alt="" src="https://assets.leetcode.com/uploads/2021/07/22/lc-linkedlistcom2.jpg" style="width: 544px; height: 65px;" />
|
||||
<pre>
|
||||
<strong>Input:</strong> head = [0,1,2,3,4], nums = [0,3,1,4]
|
||||
|
Reference in New Issue
Block a user