1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-10-24 14:28:56 +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>order</code> 不同。字母表的顺序(<code>order</code>)是一些小写字母的排列。</p>\n\n<p>给定一组用外星语书写的单词 <code>words</code>,以及其字母表的顺序 <code>order</code>,只有当给定的单词在这种外星语中按字典序排列时,返回 <code>true</code>;否则,返回 <code>false</code>。</p>\n\n<p>&nbsp;</p>\n\n<p><strong>示例 1</strong></p>\n\n<pre>\n<strong>输入:</strong>words = [&quot;hello&quot;,&quot;leetcode&quot;], order = &quot;hlabcdefgijkmnopqrstuvwxyz&quot;\n<strong>输出:</strong>true\n<strong>解释:</strong>在该语言的字母表中,&#39;h&#39; 位于 &#39;l&#39; 之前,所以单词序列是按字典序排列的。</pre>\n\n<p><strong>示例 2</strong></p>\n\n<pre>\n<strong>输入:</strong>words = [&quot;word&quot;,&quot;world&quot;,&quot;row&quot;], order = &quot;worldabcefghijkmnpqstuvxyz&quot;\n<strong>输出:</strong>false\n<strong>解释:</strong>在该语言的字母表中,&#39;d&#39; 位于 &#39;l&#39; 之后,那么 words[0] &gt; words[1],因此单词序列不是按字典序排列的。</pre>\n\n<p><strong>示例 3</strong></p>\n\n<pre>\n<strong>输入:</strong>words = [&quot;apple&quot;,&quot;app&quot;], order = &quot;abcdefghijklmnopqrstuvwxyz&quot;\n<strong>输出:</strong>false\n<strong>解释:</strong>当前三个字符 &quot;app&quot; 匹配时,第二个字符串相对短一些,然后根据词典编纂规则 &quot;apple&quot; &gt; &quot;app&quot;,因为 &#39;l&#39; &gt; &#39;&empty;&#39;,其中 &#39;&empty;&#39; 是空白字符,定义为比任何其他字符都小(<a href=\"https://baike.baidu.com/item/%E5%AD%97%E5%85%B8%E5%BA%8F\" target=\"_blank\">更多信息</a>)。\n</pre>\n\n<p>&nbsp;</p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>1 &lt;= words.length &lt;= 100</code></li>\n\t<li><code>1 &lt;= words[i].length &lt;= 20</code></li>\n\t<li><code>order.length == 26</code></li>\n\t<li>在&nbsp;<code>words[i]</code>&nbsp;和&nbsp;<code>order</code>&nbsp;中的所有字符都是英文小写字母。</li>\n</ul>\n\n<p>&nbsp;</p>\n\n<p><meta charset=\"UTF-8\" />注意:本题与主站 953&nbsp;题相同:&nbsp;<a href=\"https://leetcode-cn.com/problems/verifying-an-alien-dictionary/\">https://leetcode-cn.com/problems/verifying-an-alien-dictionary/</a></p>\n",
"isPaidOnly": false,
"difficulty": "Easy",
"likes": 19,
"likes": 21,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
@@ -156,7 +156,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"9.3K\", \"totalSubmission\": \"16.6K\", \"totalAcceptedRaw\": 9313, \"totalSubmissionRaw\": 16568, \"acRate\": \"56.2%\"}",
"stats": "{\"totalAccepted\": \"10.9K\", \"totalSubmission\": \"19.5K\", \"totalAcceptedRaw\": 10906, \"totalSubmissionRaw\": 19531, \"acRate\": \"55.8%\"}",
"hints": [],
"solution": null,
"status": null,