1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-12 19:01:47 +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

@@ -1,6 +1,6 @@
<p>给你一个长度为 <code>n</code> 的数组 <code>nums</code> ,该数组由从 <code>1</code><code>n</code><strong>不同</strong> 整数组成。另给你一个正整数 <code>k</code></p>
<p>统计并返回 <code>num</code> 中的 <strong>中位数</strong> 等于 <code>k</code> 的非空子数组的数目。</p>
<p>统计并返回 <code>nums</code> 中的 <strong>中位数</strong> 等于 <code>k</code> 的非空子数组的数目。</p>
<p><strong>注意:</strong></p>
@@ -18,14 +18,16 @@
<p><strong>示例 1</strong></p>
<pre><strong>输入:</strong>nums = [3,2,1,4,5], k = 4
<pre>
<strong>输入:</strong>nums = [3,2,1,4,5], k = 4
<strong>输出:</strong>3
<strong>解释:</strong>中位数等于 4 的子数组有:[4]、[4,5] 和 [1,4,5] 。
</pre>
<p><strong>示例 2</strong></p>
<pre><strong>输入:</strong>nums = [2,3,1], k = 3
<pre>
<strong>输入:</strong>nums = [2,3,1], k = 3
<strong>输出:</strong>1
<strong>解释:</strong>[3] 是唯一一个中位数等于 3 的子数组。
</pre>