mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-13 03:11:42 +08:00
批量更新数据
This commit is contained in:
@@ -27,14 +27,14 @@
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> array = [1,2,3,4,5,3,1], target = 3
|
||||
<strong>Input:</strong> mountainArr = [1,2,3,4,5,3,1], target = 3
|
||||
<strong>Output:</strong> 2
|
||||
<strong>Explanation:</strong> 3 exists in the array, at index=2 and index=5. Return the minimum index, which is 2.</pre>
|
||||
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> array = [0,1,2,4,2,1], target = 3
|
||||
<strong>Input:</strong> mountainArr = [0,1,2,4,2,1], target = 3
|
||||
<strong>Output:</strong> -1
|
||||
<strong>Explanation:</strong> 3 does not exist in <code>the array,</code> so we return -1.
|
||||
</pre>
|
||||
@@ -43,7 +43,7 @@
|
||||
<p><strong>Constraints:</strong></p>
|
||||
|
||||
<ul>
|
||||
<li><code>3 <= mountain_arr.length() <= 10<sup>4</sup></code></li>
|
||||
<li><code>3 <= mountainArr.length() <= 10<sup>4</sup></code></li>
|
||||
<li><code>0 <= target <= 10<sup>9</sup></code></li>
|
||||
<li><code>0 <= mountain_arr.get(index) <= 10<sup>9</sup></code></li>
|
||||
<li><code>0 <= mountainArr.get(index) <= 10<sup>9</sup></code></li>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user