1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-05 07:21:40 +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": "Hard",
"likes": 4519,
"dislikes": 229,
"likes": 4524,
"dislikes": 230,
"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.1K\", \"totalSubmission\": \"727.6K\", \"totalAcceptedRaw\": 340092, \"totalSubmissionRaw\": 727563, \"acRate\": \"46.7%\"}",
"stats": "{\"totalAccepted\": \"340.5K\", \"totalSubmission\": \"728.4K\", \"totalAcceptedRaw\": 340517, \"totalSubmissionRaw\": 728405, \"acRate\": \"46.7%\"}",
"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>",