mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 07:51:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
<p>A string <code>a</code> is lexicographically smaller than a string <code>b</code> (of the same length) if in the first position where <code>a</code> and <code>b</code> differ, string <code>a</code> has a letter that appears earlier in the alphabet than the corresponding letter in <code>b</code>. For example, <code>"0158"</code> is lexicographically smaller than <code>"0190"</code> because the first position they differ is at the third letter, and <code>'5'</code> comes before <code>'9'</code>.</p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> s = "5525", a = 9, b = 2
|
||||
@@ -26,11 +26,11 @@ Rotate: "5323"
|
||||
Add: "5222"
|
||||
Add: "5121"
|
||||
Rotate: "2151"
|
||||
Add: "2050"
|
||||
There is no way to obtain a string that is lexicographically smaller then "2050".
|
||||
Add: "2050"
|
||||
There is no way to obtain a string that is lexicographically smaller than "2050".
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> s = "74", a = 5, b = 1
|
||||
@@ -40,10 +40,10 @@ Start: "74"
|
||||
Rotate: "47"
|
||||
Add: "42"
|
||||
Rotate: "24"
|
||||
There is no way to obtain a string that is lexicographically smaller then "24".
|
||||
There is no way to obtain a string that is lexicographically smaller than "24".
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 3:</strong></p>
|
||||
<p><strong class="example">Example 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> s = "0011", a = 4, b = 2
|
||||
|
Reference in New Issue
Block a user