mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-10 09:51:42 +08:00
存量题库数据更新
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
<p>Return <em>the <strong>maximum possible height</strong> of the <strong>tallest</strong> building</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/04/08/ic236-q4-ex1-1.png" style="width: 400px; height: 253px;" />
|
||||
<pre>
|
||||
<strong>Input:</strong> n = 5, restrictions = [[2,1],[4,1]]
|
||||
@@ -23,7 +23,7 @@
|
||||
<strong>Explanation:</strong> The green area in the image indicates the maximum allowed height for each building.
|
||||
We can build the buildings with heights [0,1,2,1,2], and the tallest building has a height of 2.</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
<img alt="" src="https://assets.leetcode.com/uploads/2021/04/08/ic236-q4-ex2.png" style="width: 500px; height: 269px;" />
|
||||
<pre>
|
||||
<strong>Input:</strong> n = 6, restrictions = []
|
||||
@@ -32,7 +32,7 @@ We can build the buildings with heights [0,1,2,1,2], and the tallest building ha
|
||||
We can build the buildings with heights [0,1,2,3,4,5], and the tallest building has a height of 5.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 3:</strong></p>
|
||||
<p><strong class="example">Example 3:</strong></p>
|
||||
<img alt="" src="https://assets.leetcode.com/uploads/2021/04/08/ic236-q4-ex3.png" style="width: 500px; height: 187px;" />
|
||||
<pre>
|
||||
<strong>Input:</strong> n = 10, restrictions = [[5,3],[2,5],[7,4],[10,3]]
|
||||
|
Reference in New Issue
Block a user