1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-04 15:01: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": 335,
"dislikes": 254,
"likes": 350,
"dislikes": 257,
"isLiked": null,
"similarQuestions": "[{\"title\": \"Minimum Deletions to Make Array Beautiful\", \"titleSlug\": \"minimum-deletions-to-make-array-beautiful\", \"difficulty\": \"Medium\", \"translatedTitle\": null}, {\"title\": \"Minimum Number of Flips to Make the Binary String Alternating\", \"titleSlug\": \"minimum-number-of-flips-to-make-the-binary-string-alternating\", \"difficulty\": \"Medium\", \"translatedTitle\": null}]",
"exampleTestcases": "[3,1,3,2,4,3]\n[1,2,2,2,2]",
@@ -155,7 +155,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"14.9K\", \"totalSubmission\": \"45.6K\", \"totalAcceptedRaw\": 14913, \"totalSubmissionRaw\": 45587, \"acRate\": \"32.7%\"}",
"stats": "{\"totalAccepted\": \"15.3K\", \"totalSubmission\": \"46.7K\", \"totalAcceptedRaw\": 15311, \"totalSubmissionRaw\": 46731, \"acRate\": \"32.8%\"}",
"hints": [
"Count the frequency of each element in odd positions in the array. Do the same for elements in even positions.",
"To minimize the number of operations we need to maximize the number of elements we keep from the original array.",