mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 23:41:41 +08:00
update
This commit is contained in:
@@ -167,7 +167,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"93K\", \"totalSubmission\": \"136.9K\", \"totalAcceptedRaw\": 92962, \"totalSubmissionRaw\": 136885, \"acRate\": \"67.9%\"}",
|
||||
"stats": "{\"totalAccepted\": \"93K\", \"totalSubmission\": \"136.9K\", \"totalAcceptedRaw\": 92968, \"totalSubmissionRaw\": 136900, \"acRate\": \"67.9%\"}",
|
||||
"hints": [
|
||||
"Do a DP, where dp(i, j) is the answer for the subarray arr[i]..arr[j].",
|
||||
"For each possible way to partition the subarray i <= k < j, the answer is max(arr[i]..arr[k]) * max(arr[k+1]..arr[j]) + dp(i, k) + dp(k+1, j)."
|
||||
|
Reference in New Issue
Block a user