mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 15:31:43 +08:00
存量题库数据更新
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
<p>An <strong>ancestor</strong> of a node is any node on the path from the root to that node (excluding the node itself). The root has no ancestors.</p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
<img src="https://assets.leetcode.com/uploads/2020/12/03/trees2.png" style="width: 208px; height: 221px;" />
|
||||
<pre>
|
||||
<strong>Input:</strong> pairs = [[1,2],[2,3]]
|
||||
@@ -36,7 +36,7 @@
|
||||
<strong>Explanation:</strong> There is exactly one valid rooted tree, which is shown in the above figure.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
<img alt="" src="https://assets.leetcode.com/uploads/2020/12/03/tree.png" style="width: 234px; height: 241px;" />
|
||||
<pre>
|
||||
<strong>Input:</strong> pairs = [[1,2],[2,3],[1,3]]
|
||||
@@ -44,7 +44,7 @@
|
||||
<strong>Explanation:</strong> There are multiple valid rooted trees. Three of them are shown in the above figures.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 3:</strong></p>
|
||||
<p><strong class="example">Example 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> pairs = [[1,2],[2,3],[2,4],[1,5]]
|
||||
|
Reference in New Issue
Block a user