mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 15:31:43 +08:00
存量题库数据更新
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<p>Suppose we chose a set of deletion indices <code>answer</code> such that after deletions, the final array has its elements in <strong>lexicographic</strong> order (i.e., <code>strs[0] <= strs[1] <= strs[2] <= ... <= strs[n - 1]</code>). Return <em>the minimum possible value of</em> <code>answer.length</code>.</p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> strs = ["ca","bb","ac"]
|
||||
@@ -18,7 +18,7 @@ Now strs is in lexicographic order (ie. strs[0] <= strs[1] <= strs[2]).
|
||||
We require at least 1 deletion since initially strs was not in lexicographic order, so the answer is 1.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> strs = ["xc","yb","za"]
|
||||
@@ -29,7 +29,7 @@ Note that the rows of strs are not necessarily in lexicographic order:
|
||||
i.e., it is NOT necessarily true that (strs[0][0] <= strs[0][1] <= ...)
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 3:</strong></p>
|
||||
<p><strong class="example">Example 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> strs = ["zyx","wvu","tsr"]
|
||||
|
Reference in New Issue
Block a user