mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 07:21:40 +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",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Easy",
|
||||
"likes": 124,
|
||||
"likes": 125,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -149,7 +149,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"18.9K\", \"totalSubmission\": \"34.1K\", \"totalAcceptedRaw\": 18880, \"totalSubmissionRaw\": 34133, \"acRate\": \"55.3%\"}",
|
||||
"stats": "{\"totalAccepted\": \"20K\", \"totalSubmission\": \"36.2K\", \"totalAcceptedRaw\": 20047, \"totalSubmissionRaw\": 36227, \"acRate\": \"55.3%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
|
Reference in New Issue
Block a user