1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-03 06:22:54 +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>给定一个段落 (paragraph) 和一个禁用单词列表 (banned)。返回出现次数最多,同时不在禁用列表中的单词。</p>\n\n<p>题目保证至少有一个词不在禁用列表中,而且答案唯一。</p>\n\n<p>禁用列表中的单词用小写字母表示,不含标点符号。段落中的单词不区分大小写。答案都是小写字母。</p>\n\n<p>&nbsp;</p>\n\n<p><strong>示例:</strong></p>\n\n<pre><strong>输入:</strong> \nparagraph = &quot;Bob hit a ball, the hit BALL flew far after it was hit.&quot;\nbanned = [&quot;hit&quot;]\n<strong>输出:</strong> &quot;ball&quot;\n<strong>解释:</strong> \n&quot;hit&quot; 出现了3次但它是一个禁用的单词。\n&quot;ball&quot; 出现了2次 (同时没有其他单词出现2次),所以它是段落里出现次数最多的,且不在禁用列表中的单词。 \n注意所有这些单词在段落里不区分大小写标点符号需要忽略即使是紧挨着单词也忽略 比如 &quot;ball,&quot; \n&quot;hit&quot;不是最终的答案,虽然它出现次数更多,但它在禁用单词列表中。\n</pre>\n\n<p>&nbsp;</p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>1 &lt;= 段落长度 &lt;= 1000</code></li>\n\t<li><code>0 &lt;= 禁用单词个数 &lt;= 100</code></li>\n\t<li><code>1 &lt;= 禁用单词长度 &lt;= 10</code></li>\n\t<li>答案是唯一的, 且都是小写字母&nbsp;(即使在 <code>paragraph</code> 里是大写的,即使是一些特定的名词,答案都是小写的。)</li>\n\t<li><code>paragraph</code>&nbsp;只包含字母、空格和下列标点符号<code>!?&#39;,;.</code></li>\n\t<li>不存在没有连字符或者带有连字符的单词。</li>\n\t<li>单词里只包含字母,不会出现省略号或者其他标点符号。</li>\n</ul>\n",
"isPaidOnly": false,
"difficulty": "Easy",
"likes": 117,
"likes": 180,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
@@ -149,7 +149,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"25.6K\", \"totalSubmission\": \"60.5K\", \"totalAcceptedRaw\": 25611, \"totalSubmissionRaw\": 60504, \"acRate\": \"42.3%\"}",
"stats": "{\"totalAccepted\": \"51.6K\", \"totalSubmission\": \"111.2K\", \"totalAcceptedRaw\": 51596, \"totalSubmissionRaw\": 111188, \"acRate\": \"46.4%\"}",
"hints": [],
"solution": null,
"status": null,