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-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": 614,
"dislikes": 130,
"likes": 632,
"dislikes": 133,
"isLiked": null,
"similarQuestions": "[{\"title\": \"Minimum Number of Swaps to Make the String Balanced\", \"titleSlug\": \"minimum-number-of-swaps-to-make-the-string-balanced\", \"difficulty\": \"Medium\", \"translatedTitle\": null}]",
"exampleTestcases": "\"(()))\"\n\"())\"\n\"))())(\"",
@@ -149,7 +149,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"27.3K\", \"totalSubmission\": \"55.7K\", \"totalAcceptedRaw\": 27340, \"totalSubmissionRaw\": 55747, \"acRate\": \"49.0%\"}",
"stats": "{\"totalAccepted\": \"28.5K\", \"totalSubmission\": \"57.9K\", \"totalAcceptedRaw\": 28485, \"totalSubmissionRaw\": 57894, \"acRate\": \"49.2%\"}",
"hints": [
"Use a stack to keep opening brackets. If you face single closing ')' add 1 to the answer and consider it as '))'.",
"If you have '))' with empty stack, add 1 to the answer, If after finishing you have x opening remaining in the stack, add 2x to the answer."