mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 16:01:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<p>Given a sequence of <code>words</code> written in the alien language, and the <code>order</code> of the alphabet, return <code>true</code> if and only if the given <code>words</code> are sorted lexicographically in this alien language.</p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> words = ["hello","leetcode"], order = "hlabcdefgijkmnopqrstuvwxyz"
|
||||
@@ -11,7 +11,7 @@
|
||||
<strong>Explanation: </strong>As 'h' comes before 'l' in this language, then the sequence is sorted.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> words = ["word","world","row"], order = "worldabcefghijkmnpqstuvxyz"
|
||||
@@ -19,7 +19,7 @@
|
||||
<strong>Explanation: </strong>As 'd' comes after 'l' in this language, then words[0] > words[1], hence the sequence is unsorted.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 3:</strong></p>
|
||||
<p><strong class="example">Example 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> words = ["apple","app"], order = "abcdefghijklmnopqrstuvwxyz"
|
||||
|
Reference in New Issue
Block a user