mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 15:31:43 +08:00
update
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Medium",
|
||||
"likes": 2041,
|
||||
"dislikes": 193,
|
||||
"likes": 2098,
|
||||
"dislikes": 196,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[{\"title\": \"Subsequence of Size K With the Largest Even Sum\", \"titleSlug\": \"subsequence-of-size-k-with-the-largest-even-sum\", \"difficulty\": \"Medium\", \"translatedTitle\": null}]",
|
||||
"exampleTestcases": "[1,15,7,9,2,5,10]\n3\n[1,4,1,5,7,3,6,1,9,9,3]\n4\n[1]\n1",
|
||||
@@ -143,7 +143,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"46.4K\", \"totalSubmission\": \"66.1K\", \"totalAcceptedRaw\": 46407, \"totalSubmissionRaw\": 66113, \"acRate\": \"70.2%\"}",
|
||||
"stats": "{\"totalAccepted\": \"47.4K\", \"totalSubmission\": \"67.4K\", \"totalAcceptedRaw\": 47375, \"totalSubmissionRaw\": 67419, \"acRate\": \"70.3%\"}",
|
||||
"hints": [
|
||||
"Think dynamic programming: dp[i] will be the answer for array A[0], ..., A[i-1].",
|
||||
"For j = 1 .. k that keeps everything in bounds, dp[i] is the maximum of dp[i-j] + max(A[i-1], ..., A[i-j]) * j ."
|
||||
|
Reference in New Issue
Block a user