1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-05 07:21:40 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-05-02 23:44:12 +08:00
parent 7ea03594b3
commit 2a71c78585
4790 changed files with 11696 additions and 10944 deletions

View File

@@ -11,8 +11,8 @@
"translatedContent": null,
"isPaidOnly": false,
"difficulty": "Medium",
"likes": 2983,
"dislikes": 212,
"likes": 3035,
"dislikes": 213,
"isLiked": null,
"similarQuestions": "[]",
"exampleTestcases": "[6,2,4]\n[4,11]",
@@ -149,7 +149,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"69.8K\", \"totalSubmission\": \"102K\", \"totalAcceptedRaw\": 69823, \"totalSubmissionRaw\": 102016, \"acRate\": \"68.4%\"}",
"stats": "{\"totalAccepted\": \"70.8K\", \"totalSubmission\": \"103.5K\", \"totalAcceptedRaw\": 70815, \"totalSubmissionRaw\": 103456, \"acRate\": \"68.4%\"}",
"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)."