1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-02 22:13:28 +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>word1</code> 和 <code>word2</code> 。如果两个数组表示的字符串相同,返回<em> </em><code>true</code><em> </em>;否则,返回 <code>false</code><em> 。</em></p>\n\n<p><strong>数组表示的字符串</strong> 是由数组中的所有元素 <strong>按顺序</strong> 连接形成的字符串。</p>\n\n<p> </p>\n\n<p><strong>示例 1</strong></p>\n\n<pre>\n<strong>输入:</strong>word1 = [\"ab\", \"c\"], word2 = [\"a\", \"bc\"]\n<strong>输出:</strong>true\n<strong>解释:</strong>\nword1 表示的字符串为 \"ab\" + \"c\" -> \"abc\"\nword2 表示的字符串为 \"a\" + \"bc\" -> \"abc\"\n两个字符串相同返回 true</pre>\n\n<p><strong>示例 2</strong></p>\n\n<pre>\n<strong>输入:</strong>word1 = [\"a\", \"cb\"], word2 = [\"ab\", \"c\"]\n<strong>输出:</strong>false\n</pre>\n\n<p><strong>示例 3</strong></p>\n\n<pre>\n<strong>输入:</strong>word1 = [\"abc\", \"d\", \"defg\"], word2 = [\"abcddefg\"]\n<strong>输出:</strong>true\n</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>1 <= word1.length, word2.length <= 10<sup>3</sup></code></li>\n\t<li><code>1 <= word1[i].length, word2[i].length <= 10<sup>3</sup></code></li>\n\t<li><code>1 <= sum(word1[i].length), sum(word2[i].length) <= 10<sup>3</sup></code></li>\n\t<li><code>word1[i]</code> 和 <code>word2[i]</code> 由小写字母组成</li>\n</ul>\n",
"isPaidOnly": false,
"difficulty": "Easy",
"likes": 21,
"likes": 22,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
@@ -143,7 +143,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"23.8K\", \"totalSubmission\": \"29.4K\", \"totalAcceptedRaw\": 23804, \"totalSubmissionRaw\": 29355, \"acRate\": \"81.1%\"}",
"stats": "{\"totalAccepted\": \"24.3K\", \"totalSubmission\": \"30K\", \"totalAcceptedRaw\": 24313, \"totalSubmissionRaw\": 30024, \"acRate\": \"81.0%\"}",
"hints": [
"Concatenate all strings in the first array into a single string in the given order, the same for the second array.",
"Both arrays represent the same string if and only if the generated strings are the same."