mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 07:51:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
<p>Return <em>the <strong>maximum</strong> possible value of an element in </em><code>arr</code><em> after performing the operations to satisfy the conditions</em>.</p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> arr = [2,2,1,2,1]
|
||||
@@ -25,7 +25,7 @@ We can satisfy the conditions by rearranging <code>arr</code> so it becomes <cod
|
||||
The largest element in <code>arr</code> is 2.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> arr = [100,1,1000]
|
||||
@@ -35,11 +35,11 @@ One possible way to satisfy the conditions is by doing the following:
|
||||
1. Rearrange <code>arr</code> so it becomes <code>[1,100,1000]</code>.
|
||||
2. Decrease the value of the second element to 2.
|
||||
3. Decrease the value of the third element to 3.
|
||||
Now <code>arr = [1,2,3], which </code>satisfies the conditions.
|
||||
Now <code>arr = [1,2,3]</code>, which<code> </code>satisfies the conditions.
|
||||
The largest element in <code>arr is 3.</code>
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 3:</strong></p>
|
||||
<p><strong class="example">Example 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> arr = [1,2,3,4,5]
|
||||
|
Reference in New Issue
Block a user