mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 16:01:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
<p>Given two strings, <code>word1</code> and <code>word2</code>, return <code>true</code><em> if </em><code>word1</code><em> and </em><code>word2</code><em> are <strong>close</strong>, and </em><code>false</code><em> otherwise.</em></p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> word1 = "abc", word2 = "bca"
|
||||
@@ -29,7 +29,7 @@ Apply Operation 1: "a<u>bc</u>" -> "a<u>cb</u>"
|
||||
Apply Operation 1: "<u>a</u>c<u>b</u>" -> "<u>b</u>c<u>a</u>"
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> word1 = "a", word2 = "aa"
|
||||
@@ -37,7 +37,7 @@ Apply Operation 1: "<u>a</u>c<u>b</u>" -> "<u>b</u>c<u>a</u>&q
|
||||
<strong>Explanation: </strong>It is impossible to attain word2 from word1, or vice versa, in any number of operations.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 3:</strong></p>
|
||||
<p><strong class="example">Example 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> word1 = "cabbba", word2 = "abbccc"
|
||||
@@ -53,5 +53,5 @@ Apply Operation 2: "<u>baa</u>ccc" -> "<u>abb</u>ccc"
|
||||
|
||||
<ul>
|
||||
<li><code>1 <= word1.length, word2.length <= 10<sup>5</sup></code></li>
|
||||
<li><code>word1</code> and <code>word2</code> contain only lowercase English letters.</li>
|
||||
<li><code>word1</code> and <code>word2</code> contain only lowercase English letters.</li>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user