mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-24 14:28:56 +08:00
update
This commit is contained in:
@@ -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> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre>\n<strong>输入:</strong>words = ["hello","leetcode"], order = "hlabcdefgijkmnopqrstuvwxyz"\n<strong>输出:</strong>true\n<strong>解释:</strong>在该语言的字母表中,'h' 位于 'l' 之前,所以单词序列是按字典序排列的。</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre>\n<strong>输入:</strong>words = ["word","world","row"], order = "worldabcefghijkmnpqstuvxyz"\n<strong>输出:</strong>false\n<strong>解释:</strong>在该语言的字母表中,'d' 位于 'l' 之后,那么 words[0] > words[1],因此单词序列不是按字典序排列的。</pre>\n\n<p><strong>示例 3:</strong></p>\n\n<pre>\n<strong>输入:</strong>words = ["apple","app"], order = "abcdefghijklmnopqrstuvwxyz"\n<strong>输出:</strong>false\n<strong>解释:</strong>当前三个字符 "app" 匹配时,第二个字符串相对短一些,然后根据词典编纂规则 "apple" > "app",因为 'l' > '∅',其中 '∅' 是空白字符,定义为比任何其他字符都小(<a href=\"https://baike.baidu.com/item/%E5%AD%97%E5%85%B8%E5%BA%8F\" target=\"_blank\">更多信息</a>)。\n</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>1 <= words.length <= 100</code></li>\n\t<li><code>1 <= words[i].length <= 20</code></li>\n\t<li><code>order.length == 26</code></li>\n\t<li>在 <code>words[i]</code> 和 <code>order</code> 中的所有字符都是英文小写字母。</li>\n</ul>\n\n<p> </p>\n\n<p><meta charset=\"UTF-8\" />注意:本题与主站 953 题相同: <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,
|
||||
|
||||
Reference in New Issue
Block a user