mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-23 05:48:57 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>给定一个非负整数数组 <code>nums</code> 和一个整数 <code>m</code> ,你需要将这个数组分成 <code>m</code><em> </em>个非空的连续子数组。</p>\n\n<p>设计一个算法使得这 <code>m</code><em> </em>个子数组各自和的最大值最小。</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre>\n<strong>输入:</strong>nums = [7,2,5,10,8], m = 2\n<strong>输出:</strong>18\n<strong>解释:</strong>\n一共有四种方法将 nums 分割为 2 个子数组。 \n其中最好的方式是将其分为 [7,2,5] 和 [10,8] 。\n因为此时这两个子数组各自的和的最大值为18,在所有情况中最小。</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre>\n<strong>输入:</strong>nums = [1,2,3,4,5], m = 2\n<strong>输出:</strong>9\n</pre>\n\n<p><strong>示例 3:</strong></p>\n\n<pre>\n<strong>输入:</strong>nums = [1,4,4], m = 3\n<strong>输出:</strong>4\n</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>1 <= nums.length <= 1000</code></li>\n\t<li><code>0 <= nums[i] <= 10<sup>6</sup></code></li>\n\t<li><code>1 <= m <= min(50, nums.length)</code></li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Hard",
|
||||
"likes": 647,
|
||||
"likes": 649,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -155,7 +155,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"46.6K\", \"totalSubmission\": \"81.1K\", \"totalAcceptedRaw\": 46602, \"totalSubmissionRaw\": 81126, \"acRate\": \"57.4%\"}",
|
||||
"stats": "{\"totalAccepted\": \"46.7K\", \"totalSubmission\": \"81.3K\", \"totalAcceptedRaw\": 46677, \"totalSubmissionRaw\": 81258, \"acRate\": \"57.4%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
|
Reference in New Issue
Block a user