mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 15:31:43 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>给出第一个词 <code>first</code> 和第二个词 <code>second</code>,考虑在某些文本 <code>text</code> 中可能以 <code>\"first second third\"</code> 形式出现的情况,其中 <code>second</code> 紧随 <code>first</code> 出现,<code>third</code> 紧随 <code>second</code> 出现。</p>\n\n<p>对于每种这样的情况,将第三个词 \"<code>third</code>\" 添加到答案中,并返回答案。</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre>\n<strong>输入:</strong>text = \"alice is a good girl she is a good student\", first = \"a\", second = \"good\"\n<strong>输出:</strong>[\"girl\",\"student\"]\n</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre>\n<strong>输入:</strong>text = \"we will we will rock you\", first = \"we\", second = \"will\"\n<strong>输出:</strong>[\"we\",\"rock\"]\n</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>1 <= text.length <= 1000</code></li>\n\t<li><code>text</code> 由小写英文字母和空格组成</li>\n\t<li><code>text</code> 中的所有单词之间都由 <strong>单个空格字符</strong> 分隔</li>\n\t<li><code>1 <= first.length, second.length <= 10</code></li>\n\t<li><code>first</code> 和 <code>second</code> 由小写英文字母组成</li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Easy",
|
||||
"likes": 71,
|
||||
"likes": 72,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -137,7 +137,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"33K\", \"totalSubmission\": \"50.3K\", \"totalAcceptedRaw\": 33022, \"totalSubmissionRaw\": 50257, \"acRate\": \"65.7%\"}",
|
||||
"stats": "{\"totalAccepted\": \"33K\", \"totalSubmission\": \"50.3K\", \"totalAcceptedRaw\": 33041, \"totalSubmissionRaw\": 50303, \"acRate\": \"65.7%\"}",
|
||||
"hints": [
|
||||
"Split the string into words, then look at adjacent triples of words."
|
||||
],
|
||||
|
Reference in New Issue
Block a user