1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-10-21 21:16:45 +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>给你两个字符串:<code>ransomNote</code> 和 <code>magazine</code> ,判断 <code>ransomNote</code> 能不能由 <code>magazine</code> 里面的字符构成。</p>\n\n<p>如果可以,返回 <code>true</code> ;否则返回 <code>false</code> 。</p>\n\n<p><code>magazine</code> 中的每个字符只能在 <code>ransomNote</code> 中使用一次。</p>\n\n<p>&nbsp;</p>\n\n<p><strong>示例 1</strong></p>\n\n<pre>\n<strong>输入:</strong>ransomNote = \"a\", magazine = \"b\"\n<strong>输出:</strong>false\n</pre>\n\n<p><strong>示例 2</strong></p>\n\n<pre>\n<strong>输入:</strong>ransomNote = \"aa\", magazine = \"ab\"\n<strong>输出:</strong>false\n</pre>\n\n<p><strong>示例 3</strong></p>\n\n<pre>\n<strong>输入:</strong>ransomNote = \"aa\", magazine = \"aab\"\n<strong>输出:</strong>true\n</pre>\n\n<p>&nbsp;</p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>1 &lt;= ransomNote.length, magazine.length &lt;= 10<sup>5</sup></code></li>\n\t<li><code>ransomNote</code> 和 <code>magazine</code> 由小写英文字母组成</li>\n</ul>\n",
"isPaidOnly": false,
"difficulty": "Easy",
"likes": 294,
"likes": 313,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[{\"title\": \"Stickers to Spell Word\", \"titleSlug\": \"stickers-to-spell-word\", \"difficulty\": \"Hard\", \"translatedTitle\": \"\\u8d34\\u7eb8\\u62fc\\u8bcd\"}]",
@@ -149,7 +149,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"149.1K\", \"totalSubmission\": \"231.1K\", \"totalAcceptedRaw\": 149050, \"totalSubmissionRaw\": 231120, \"acRate\": \"64.5%\"}",
"stats": "{\"totalAccepted\": \"161.8K\", \"totalSubmission\": \"251.3K\", \"totalAcceptedRaw\": 161794, \"totalSubmissionRaw\": 251307, \"acRate\": \"64.4%\"}",
"hints": [],
"solution": null,
"status": null,