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\": \"88.9K\", \"totalSubmission\": \"122.9K\", \"totalAcceptedRaw\": 88889, \"totalSubmissionRaw\": 122891, \"acRate\": \"72.3%\"}",
|
||||
"stats": "{\"totalAccepted\": \"88.9K\", \"totalSubmission\": \"122.9K\", \"totalAcceptedRaw\": 88897, \"totalSubmissionRaw\": 122903, \"acRate\": \"72.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