mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-25 23:08:57 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>给出由小写字母组成的字符串 <code>S</code>,<strong>重复项删除操作</strong>会选择两个相邻且相同的字母,并删除它们。</p>\n\n<p>在 S 上反复执行重复项删除操作,直到无法继续删除。</p>\n\n<p>在完成所有重复项删除操作后返回最终的字符串。答案保证唯一。</p>\n\n<p> </p>\n\n<p><strong>示例:</strong></p>\n\n<pre><strong>输入:</strong>"abbaca"\n<strong>输出:</strong>"ca"\n<strong>解释:</strong>\n例如,在 "abbaca" 中,我们可以删除 "bb" 由于两字母相邻且相同,这是此时唯一可以执行删除操作的重复项。之后我们得到字符串 "aaca",其中又只有 "aa" 可以执行重复项删除操作,所以最后的字符串为 "ca"。\n</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ol>\n\t<li><code>1 <= S.length <= 20000</code></li>\n\t<li><code>S</code> 仅由小写英文字母组成。</li>\n</ol>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Easy",
|
||||
"likes": 353,
|
||||
"likes": 361,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -143,7 +143,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"137.4K\", \"totalSubmission\": \"189.2K\", \"totalAcceptedRaw\": 137391, \"totalSubmissionRaw\": 189185, \"acRate\": \"72.6%\"}",
|
||||
"stats": "{\"totalAccepted\": \"145.1K\", \"totalSubmission\": \"199.9K\", \"totalAcceptedRaw\": 145097, \"totalSubmissionRaw\": 199919, \"acRate\": \"72.6%\"}",
|
||||
"hints": [
|
||||
"Use a stack to process everything greedily."
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user