mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-09 01:11:42 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>给你一个整数数组 <code>jobs</code> ,其中 <code>jobs[i]</code> 是完成第 <code>i</code> 项工作要花费的时间。</p>\n\n<p>请你将这些工作分配给 <code>k</code> 位工人。所有工作都应该分配给工人,且每项工作只能分配给一位工人。工人的 <strong>工作时间</strong> 是完成分配给他们的所有工作花费时间的总和。请你设计一套最佳的工作分配方案,使工人的 <strong>最大工作时间</strong> 得以 <strong>最小化</strong> 。</p>\n\n<p>返回分配方案中尽可能 <strong>最小</strong> 的 <strong>最大工作时间</strong> 。</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre>\n<strong>输入:</strong>jobs = [3,2,3], k = 3\n<strong>输出:</strong>3\n<strong>解释:</strong>给每位工人分配一项工作,最大工作时间是 3 。\n</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre>\n<strong>输入:</strong>jobs = [1,2,4,7,8], k = 2\n<strong>输出:</strong>11\n<strong>解释:</strong>按下述方式分配工作:\n1 号工人:1、2、8(工作时间 = 1 + 2 + 8 = 11)\n2 号工人:4、7(工作时间 = 4 + 7 = 11)\n最大工作时间是 11 。</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>1 <= k <= jobs.length <= 12</code></li>\n\t<li><code>1 <= jobs[i] <= 10<sup>7</sup></code></li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Hard",
|
||||
"likes": 258,
|
||||
"likes": 263,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -161,7 +161,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"24.7K\", \"totalSubmission\": \"48.9K\", \"totalAcceptedRaw\": 24726, \"totalSubmissionRaw\": 48940, \"acRate\": \"50.5%\"}",
|
||||
"stats": "{\"totalAccepted\": \"25.4K\", \"totalSubmission\": \"50.1K\", \"totalAcceptedRaw\": 25364, \"totalSubmissionRaw\": 50070, \"acRate\": \"50.7%\"}",
|
||||
"hints": [
|
||||
"We can select a subset of tasks and assign it to a worker then solve the subproblem on the remaining tasks"
|
||||
],
|
||||
|
Reference in New Issue
Block a user