mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-12 10:51:42 +08:00
存量题库数据更新
This commit is contained in:
@@ -6,23 +6,26 @@
|
||||
|
||||
<p> </p>
|
||||
|
||||
<p><strong>示例 1:</strong></p>
|
||||
<p><strong class="example">示例 1:</strong></p>
|
||||
|
||||
<pre><strong>输入:</strong>arr1 = [1,5,3,6,7], arr2 = [1,3,2,4]
|
||||
<pre>
|
||||
<strong>输入:</strong>arr1 = [1,5,3,6,7], arr2 = [1,3,2,4]
|
||||
<strong>输出:</strong>1
|
||||
<strong>解释:</strong>用 2 来替换 <code>5,之后</code> <code>arr1 = [1, 2, 3, 6, 7]</code>。
|
||||
</pre>
|
||||
|
||||
<p><strong>示例 2:</strong></p>
|
||||
<p><strong class="example">示例 2:</strong></p>
|
||||
|
||||
<pre><strong>输入:</strong>arr1 = [1,5,3,6,7], arr2 = [4,3,1]
|
||||
<pre>
|
||||
<strong>输入:</strong>arr1 = [1,5,3,6,7], arr2 = [4,3,1]
|
||||
<strong>输出:</strong>2
|
||||
<strong>解释:</strong>用 3 来替换 <code>5,然后</code>用 4 来替换 3<code>,得到</code> <code>arr1 = [1, 3, 4, 6, 7]</code>。
|
||||
</pre>
|
||||
|
||||
<p><strong>示例 3:</strong></p>
|
||||
<p><strong class="example">示例 3:</strong></p>
|
||||
|
||||
<pre><strong>输入:</strong>arr1 = [1,5,3,6,7], arr2 = [1,6,3,3]
|
||||
<pre>
|
||||
<strong>输入:</strong>arr1 = [1,5,3,6,7], arr2 = [1,6,3,3]
|
||||
<strong>输出:</strong>-1
|
||||
<strong>解释:</strong>无法使 <code>arr1 严格递增</code>。</pre>
|
||||
|
||||
|
Reference in New Issue
Block a user