1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-12 10:51:42 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

存量题库数据更新

This commit is contained in:
2023-12-09 18:42:21 +08:00
parent a788808cd7
commit c198538f10
10843 changed files with 288489 additions and 248355 deletions

View File

@@ -6,23 +6,26 @@
<p>&nbsp;</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>示例&nbsp;3</strong></p>
<p><strong class="example">示例&nbsp;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>