1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-10-24 22:38:57 +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

@@ -12,7 +12,7 @@
"translatedContent": "<p>给定一个字符串&nbsp;<code>s</code>&nbsp;,检查是否能重新排布其中的字母,使得两相邻的字符不同。</p>\n\n<p>返回<em> <code>s</code>&nbsp;的任意可能的重新排列。若不可行,返回空字符串&nbsp;<code>\"\"</code></em>&nbsp;。</p>\n\n<p>&nbsp;</p>\n\n<p><strong>示例&nbsp;1:</strong></p>\n\n<pre>\n<strong>输入:</strong> s = \"aab\"\n<strong>输出:</strong> \"aba\"\n</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre>\n<strong>输入:</strong> s = \"aaab\"\n<strong>输出:</strong> \"\"\n</pre>\n\n<p>&nbsp;</p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>1 &lt;= s.length &lt;= 500</code></li>\n\t<li><code>s</code> 只包含小写字母</li>\n</ul>\n",
"isPaidOnly": false,
"difficulty": "Medium",
"likes": 394,
"likes": 401,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[{\"title\": \"Rearrange String k Distance Apart\", \"titleSlug\": \"rearrange-string-k-distance-apart\", \"difficulty\": \"Hard\", \"translatedTitle\": \"K \\u8ddd\\u79bb\\u95f4\\u9694\\u91cd\\u6392\\u5b57\\u7b26\\u4e32\"}, {\"title\": \"Task Scheduler\", \"titleSlug\": \"task-scheduler\", \"difficulty\": \"Medium\", \"translatedTitle\": \"\\u4efb\\u52a1\\u8c03\\u5ea6\\u5668\"}]",
@@ -167,7 +167,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"43.6K\", \"totalSubmission\": \"91.1K\", \"totalAcceptedRaw\": 43610, \"totalSubmissionRaw\": 91108, \"acRate\": \"47.9%\"}",
"stats": "{\"totalAccepted\": \"44.3K\", \"totalSubmission\": \"92.5K\", \"totalAcceptedRaw\": 44328, \"totalSubmissionRaw\": 92502, \"acRate\": \"47.9%\"}",
"hints": [
"Alternate placing the most common letters."
],