mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-12 02:41:42 +08:00
存量题库数据更新
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
<p>Return <em>the <strong>minimum number of operations</strong> required to make the array K-increasing for the given </em><code>k</code>.</p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> arr = [5,4,3,2,1], k = 1
|
||||
@@ -32,7 +32,7 @@ It is suboptimal to change the array to, for example, [<u><strong>6</strong></u>
|
||||
It can be shown that we cannot make the array K-increasing in less than 4 operations.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> arr = [4,1,5,2,6,2], k = 2
|
||||
@@ -42,7 +42,7 @@ This is the same example as the one in the problem description.
|
||||
Here, for every index i where 2 <= i <= 5, arr[i-2] <=<b> </b>arr[i].
|
||||
Since the given array is already K-increasing, we do not need to perform any operations.</pre>
|
||||
|
||||
<p><strong>Example 3:</strong></p>
|
||||
<p><strong class="example">Example 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> arr = [4,1,5,2,6,2], k = 3
|
||||
|
Reference in New Issue
Block a user