mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-04 06:51:41 +08:00
update
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Hard",
|
||||
"likes": 41,
|
||||
"dislikes": 5,
|
||||
"likes": 45,
|
||||
"dislikes": 6,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"exampleTestcases": "3\n2\n4\n2\n20\n5",
|
||||
@@ -28,7 +28,7 @@
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"1.4K\", \"totalSubmission\": \"2.3K\", \"totalAcceptedRaw\": 1399, \"totalSubmissionRaw\": 2321, \"acRate\": \"60.3%\"}",
|
||||
"stats": "{\"totalAccepted\": \"1.5K\", \"totalSubmission\": \"2.4K\", \"totalAcceptedRaw\": 1473, \"totalSubmissionRaw\": 2423, \"acRate\": \"60.8%\"}",
|
||||
"hints": [
|
||||
"Try to define a recursive approach. For the ith candies, there will be one of the two following cases:",
|
||||
"If the i - 1 previous candies are already distributed into k bags for the ith candy, you can have k * dp[n - 1][k] ways to distribute the ith candy. We need then to solve the state of (n - 1, k).",
|
||||
|
Reference in New Issue
Block a user