1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-06 07:51:41 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

存量题库数据更新

This commit is contained in:
2023-12-09 18:42:21 +08:00
parent a788808cd7
commit c198538f10
10843 changed files with 288489 additions and 248355 deletions

View File

@@ -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>&quot;0158&quot;</code> is lexicographically smaller than <code>&quot;0190&quot;</code> because the first position they differ is at the third letter, and <code>&#39;5&#39;</code> comes before <code>&#39;9&#39;</code>.</p>
<p>&nbsp;</p>
<p><strong>Example 1:</strong></p>
<p><strong class="example">Example 1:</strong></p>
<pre>
<strong>Input:</strong> s = &quot;5525&quot;, a = 9, b = 2
@@ -26,11 +26,11 @@ Rotate: &quot;5323&quot;
Add: &quot;5222&quot;
Add: &quot;5121&quot;
Rotate: &quot;2151&quot;
Add: &quot;2050&quot;
There is no way to obtain a string that is lexicographically smaller then &quot;2050&quot;.
Add: &quot;2050&quot;
There is no way to obtain a string that is lexicographically smaller than &quot;2050&quot;.
</pre>
<p><strong>Example 2:</strong></p>
<p><strong class="example">Example 2:</strong></p>
<pre>
<strong>Input:</strong> s = &quot;74&quot;, a = 5, b = 1
@@ -40,10 +40,10 @@ Start: &quot;74&quot;
Rotate: &quot;47&quot;
Add: &quot;42&quot;
Rotate: &quot;24&quot;
There is no way to obtain a string that is lexicographically smaller then &quot;24&quot;.
There is no way to obtain a string that is lexicographically smaller than &quot;24&quot;.
</pre>
<p><strong>Example 3:</strong></p>
<p><strong class="example">Example 3:</strong></p>
<pre>
<strong>Input:</strong> s = &quot;0011&quot;, a = 4, b = 2