1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-04 06:51:41 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-03-29 15:21:05 +08:00
parent b84ae535b7
commit e730aa6794
2244 changed files with 8703 additions and 59499 deletions

View File

@@ -11,8 +11,8 @@
"translatedContent": null,
"isPaidOnly": false,
"difficulty": "Medium",
"likes": 331,
"dislikes": 252,
"likes": 335,
"dislikes": 254,
"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.8K\", \"totalSubmission\": \"45.3K\", \"totalAcceptedRaw\": 14817, \"totalSubmissionRaw\": 45339, \"acRate\": \"32.7%\"}",
"stats": "{\"totalAccepted\": \"14.9K\", \"totalSubmission\": \"45.6K\", \"totalAcceptedRaw\": 14913, \"totalSubmissionRaw\": 45587, \"acRate\": \"32.7%\"}",
"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.",