1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-05 15:31:43 +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": 2695,
"dislikes": 108,
"likes": 2782,
"dislikes": 113,
"isLiked": null,
"similarQuestions": "[{\"title\": \"Maximum Score from Performing Multiplication Operations\", \"titleSlug\": \"maximum-score-from-performing-multiplication-operations\", \"difficulty\": \"Medium\", \"translatedTitle\": null}, {\"title\": \"Removing Minimum and Maximum From Array\", \"titleSlug\": \"removing-minimum-and-maximum-from-array\", \"difficulty\": \"Medium\", \"translatedTitle\": null}]",
"exampleTestcases": "[1,2,3,4,5,6,1]\n3\n[2,2,2]\n2\n[9,7,7,9,7,7,9]\n7",
@@ -137,7 +137,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"124.6K\", \"totalSubmission\": \"249.4K\", \"totalAcceptedRaw\": 124649, \"totalSubmissionRaw\": 249353, \"acRate\": \"50.0%\"}",
"stats": "{\"totalAccepted\": \"128.3K\", \"totalSubmission\": \"256.3K\", \"totalAcceptedRaw\": 128292, \"totalSubmissionRaw\": 256262, \"acRate\": \"50.1%\"}",
"hints": [
"Let the sum of all points be total_pts. You need to remove a sub-array from cardPoints with length n - k.",
"Keep a window of size n - k over the array. The answer is max(answer, total_pts - sumOfCurrentWindow)"