1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-06 07:51:41 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2023-12-09 19:57:46 +08:00
parent 9bc4722a45
commit 3770b44d1e
4792 changed files with 10889 additions and 10886 deletions

View File

@@ -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 ."