mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 07:51:41 +08:00
update
This commit is contained in:
@@ -149,7 +149,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"32.2K\", \"totalSubmission\": \"42.7K\", \"totalAcceptedRaw\": 32213, \"totalSubmissionRaw\": 42746, \"acRate\": \"75.4%\"}",
|
||||
"stats": "{\"totalAccepted\": \"32.2K\", \"totalSubmission\": \"42.7K\", \"totalAcceptedRaw\": 32216, \"totalSubmissionRaw\": 42749, \"acRate\": \"75.4%\"}",
|
||||
"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