mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-11 10:21:43 +08:00
批量更新数据
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<p>Given an array <code>arr</code> and a function <code>fn</code>, return a sorted array <code>sortedArr</code>. You can assume <code>fn</code> only returns numbers and those numbers determine the sort order of <code>sortedArr</code>. <code>sortedArray</code> must be sorted in <strong>ascending order</strong> by <code>fn</code> output.</p>
|
||||
<p>Given an array <code>arr</code> and a function <code>fn</code>, return a sorted array <code>sortedArr</code>. You can assume <code>fn</code> only returns numbers and those numbers determine the sort order of <code>sortedArr</code>. <code>sortedArr</code> must be sorted in <strong>ascending order</strong> by <code>fn</code> output.</p>
|
||||
|
||||
<p>You may assume that <code>fn</code> will never duplicate numbers for a given array.</p>
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
<p><strong>Constraints:</strong></p>
|
||||
|
||||
<ul>
|
||||
<li><code>arr is a valid JSON array</code></li>
|
||||
<li><code>fn is a function that returns a number</code></li>
|
||||
<li><code>arr</code> is a valid JSON array</li>
|
||||
<li><code>fn</code> is a function that returns a number</li>
|
||||
<li><code>1 <= arr.length <= 5 * 10<sup>5</sup></code></li>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user