mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-04 23:11:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<p>Return the lexicographically smallest string that <code>s</code> can be changed to after using the swaps.</p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> s = "dcab", pairs = [[0,3],[1,2]]
|
||||
@@ -15,7 +15,7 @@ Swap s[0] and s[3], s = "bcad"
|
||||
Swap s[1] and s[2], s = "bacd"
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> s = "dcab", pairs = [[0,3],[1,2],[0,2]]
|
||||
@@ -25,7 +25,7 @@ Swap s[0] and s[3], s = "bcad"
|
||||
Swap s[0] and s[2], s = "acbd"
|
||||
Swap s[1] and s[2], s = "abcd"</pre>
|
||||
|
||||
<p><strong>Example 3:</strong></p>
|
||||
<p><strong class="example">Example 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> s = "cba", pairs = [[0,1],[1,2]]
|
||||
|
Reference in New Issue
Block a user