1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-12 02:41:42 +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

@@ -11,18 +11,20 @@
<p><strong>示例 1</strong></p>
<pre><strong>输入:</strong>start = "_L__R__R_", target = "L______RR"
<pre>
<strong>输入:</strong>start = "_L__R__R_", target = "L______RR"
<strong>输出:</strong>true
<strong>解释:</strong>可以从字符串 start 获得 target ,需要进行下面的移动:
- 将第一个片段向左移动一步,字符串现在变为 "<strong>L</strong>___R__R_" 。
- 将最后一个片段向右移动一步,字符串现在变为 "L___R___<strong>R</strong>" 。
- 将第二个片段向右移动步,字符串现在变为 "L______<strong>R</strong>R" 。
- 将第二个片段向右移动步,字符串现在变为 "L______<strong>R</strong>R" 。
可以从字符串 start 得到 target ,所以返回 true 。
</pre>
<p><strong>示例 2</strong></p>
<pre><strong>输入:</strong>start = "R_L_", target = "__LR"
<pre>
<strong>输入:</strong>start = "R_L_", target = "__LR"
<strong>输出:</strong>false
<strong>解释:</strong>字符串 start 中的 'R' 片段可以向右移动一步得到 "_<strong>R</strong>L_" 。
但是,在这一步之后,不存在可以移动的片段,所以无法从字符串 start 得到 target 。
@@ -30,7 +32,8 @@
<p><strong>示例 3</strong></p>
<pre><strong>输入:</strong>start = "_R", target = "R_"
<pre>
<strong>输入:</strong>start = "_R", target = "R_"
<strong>输出:</strong>false
<strong>解释:</strong>字符串 start 中的片段只能向右移动,所以无法从字符串 start 得到 target 。</pre>