1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-10-22 05:26:46 +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>给定字符串 <strong>s</strong> 和 <strong>t</strong> ,判断 <strong>s</strong> 是否为 <strong>t</strong> 的子序列。</p>\n\n<p>字符串的一个子序列是原始字符串删除一些(也可以不删除)字符而不改变剩余字符相对位置形成的新字符串。(例如,<code>\"ace\"</code>是<code>\"abcde\"</code>的一个子序列,而<code>\"aec\"</code>不是)。</p>\n\n<p><strong>进阶:</strong></p>\n\n<p>如果有大量输入的 S称作 S1, S2, ... , Sk 其中 k >= 10亿你需要依次检查它们是否为 T 的子序列。在这种情况下,你会怎样改变代码?</p>\n\n<p><strong>致谢:</strong></p>\n\n<p>特别感谢<strong> </strong><a href=\"https://leetcode.com/pbrother/\">@pbrother </a>添加此问题并且创建所有测试用例。</p>\n\n<p> </p>\n\n<p><strong>示例 1</strong></p>\n\n<pre>\n<strong>输入:</strong>s = \"abc\", t = \"ahbgdc\"\n<strong>输出:</strong>true\n</pre>\n\n<p><strong>示例 2</strong></p>\n\n<pre>\n<strong>输入:</strong>s = \"axc\", t = \"ahbgdc\"\n<strong>输出:</strong>false\n</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>0 <= s.length <= 100</code></li>\n\t<li><code>0 <= t.length <= 10^4</code></li>\n\t<li>两个字符串都只由小写字符组成。</li>\n</ul>\n",
"isPaidOnly": false,
"difficulty": "Easy",
"likes": 619,
"likes": 634,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[{\"title\": \"Number of Matching Subsequences\", \"titleSlug\": \"number-of-matching-subsequences\", \"difficulty\": \"Medium\", \"translatedTitle\": \"\\u5339\\u914d\\u5b50\\u5e8f\\u5217\\u7684\\u5355\\u8bcd\\u6570\"}, {\"title\": \"Shortest Way to Form String\", \"titleSlug\": \"shortest-way-to-form-string\", \"difficulty\": \"Medium\", \"translatedTitle\": \"\\u5f62\\u6210\\u5b57\\u7b26\\u4e32\\u7684\\u6700\\u77ed\\u8def\\u5f84\"}]",
@@ -149,7 +149,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"182.4K\", \"totalSubmission\": \"350.9K\", \"totalAcceptedRaw\": 182373, \"totalSubmissionRaw\": 350879, \"acRate\": \"52.0%\"}",
"stats": "{\"totalAccepted\": \"191.2K\", \"totalSubmission\": \"367.4K\", \"totalAcceptedRaw\": 191218, \"totalSubmissionRaw\": 367364, \"acRate\": \"52.1%\"}",
"hints": [],
"solution": null,
"status": null,