mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-04 15:01:40 +08:00
update
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Hard",
|
||||
"likes": 1103,
|
||||
"likes": 1153,
|
||||
"dislikes": 23,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[{\"title\": \"Number of Ways to Divide a Long Corridor\", \"titleSlug\": \"number-of-ways-to-divide-a-long-corridor\", \"difficulty\": \"Hard\", \"translatedTitle\": null}]",
|
||||
@@ -125,7 +125,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"21.4K\", \"totalSubmission\": \"39K\", \"totalAcceptedRaw\": 21438, \"totalSubmissionRaw\": 38991, \"acRate\": \"55.0%\"}",
|
||||
"stats": "{\"totalAccepted\": \"22.3K\", \"totalSubmission\": \"40.6K\", \"totalAcceptedRaw\": 22336, \"totalSubmissionRaw\": 40613, \"acRate\": \"55.0%\"}",
|
||||
"hints": [
|
||||
"Build a dp array where dp[i][j] is the minimum cost to achieve all the cuts between i and j.",
|
||||
"When you try to get the minimum cost between i and j, try all possible cuts k between them, dp[i][j] = min(dp[i][k] + dp[k][j]) + (j - i) for all possible cuts k between them."
|
||||
|
Reference in New Issue
Block a user