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": "Hard",
"likes": 4524,
"dislikes": 230,
"likes": 4589,
"dislikes": 233,
"isLiked": null,
"similarQuestions": "[{\"title\": \"Valid Parentheses\", \"titleSlug\": \"valid-parentheses\", \"difficulty\": \"Easy\", \"translatedTitle\": null}, {\"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\"(a)())()\"\n\")(\"",
@@ -149,7 +149,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"340.5K\", \"totalSubmission\": \"728.4K\", \"totalAcceptedRaw\": 340517, \"totalSubmissionRaw\": 728405, \"acRate\": \"46.7%\"}",
"stats": "{\"totalAccepted\": \"346.1K\", \"totalSubmission\": \"738.6K\", \"totalAcceptedRaw\": 346103, \"totalSubmissionRaw\": 738571, \"acRate\": \"46.9%\"}",
"hints": [
"Since we don't know which of the brackets can possibly be removed, we try out all the options!",
"We can use recursion to try out all possibilities for the given expression. For each of the brackets, we have 2 options:\r\n\r\n<ol>\r\n<li> We keep the bracket and add it to the expression that we are building on the fly during recursion.</li>\r\n<li> OR, we can discard the bracket and move on.\r\n</ol>",