mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-07 08:21:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -13,7 +13,7 @@ If <code>|arr[i] - m| == |arr[j] - m|</code>, then <code>arr[i]</code> is said t
|
||||
</ul>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> arr = [1,2,3,4,5], k = 2
|
||||
@@ -22,7 +22,7 @@ If <code>|arr[i] - m| == |arr[j] - m|</code>, then <code>arr[i]</code> is said t
|
||||
Please note that although |5 - 3| == |1 - 3| but 5 is stronger than 1 because 5 > 1.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> arr = [1,1,3,5,5], k = 2
|
||||
@@ -30,7 +30,7 @@ Please note that although |5 - 3| == |1 - 3| but 5 is stronger than 1 because 5
|
||||
<strong>Explanation:</strong> Median is 3, the elements of the array sorted by the strongest are [5,5,1,1,3]. The strongest 2 elements are [5, 5].
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 3:</strong></p>
|
||||
<p><strong class="example">Example 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> arr = [6,7,11,7,6,8], k = 5
|
||||
|
Reference in New Issue
Block a user