mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-11 18:31:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
<p>给定一个非负整数数组 <code>nums</code> 和一个整数 <code>m</code> ,你需要将这个数组分成 <code>m</code><em> </em>个非空的连续子数组。</p>
|
||||
<p>给定一个非负整数数组 <code>nums</code> 和一个整数 <code>k</code> ,你需要将这个数组分成 <code>k</code><em> </em>个非空的连续子数组。</p>
|
||||
|
||||
<p>设计一个算法使得这 <code>m</code><em> </em>个子数组各自和的最大值最小。</p>
|
||||
<p>设计一个算法使得这 <code>k</code><em> </em>个子数组各自和的最大值最小。</p>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<p><strong>示例 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>输入:</strong>nums = [7,2,5,10,8], m = 2
|
||||
<strong>输入:</strong>nums = [7,2,5,10,8], k = 2
|
||||
<strong>输出:</strong>18
|
||||
<strong>解释:</strong>
|
||||
一共有四种方法将 nums 分割为 2 个子数组。
|
||||
@@ -17,14 +17,14 @@
|
||||
<p><strong>示例 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>输入:</strong>nums = [1,2,3,4,5], m = 2
|
||||
<strong>输入:</strong>nums = [1,2,3,4,5], k = 2
|
||||
<strong>输出:</strong>9
|
||||
</pre>
|
||||
|
||||
<p><strong>示例 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>输入:</strong>nums = [1,4,4], m = 3
|
||||
<strong>输入:</strong>nums = [1,4,4], k = 3
|
||||
<strong>输出:</strong>4
|
||||
</pre>
|
||||
|
||||
@@ -35,5 +35,5 @@
|
||||
<ul>
|
||||
<li><code>1 <= nums.length <= 1000</code></li>
|
||||
<li><code>0 <= nums[i] <= 10<sup>6</sup></code></li>
|
||||
<li><code>1 <= m <= min(50, nums.length)</code></li>
|
||||
<li><code>1 <= k <= min(50, nums.length)</code></li>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user