mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-11 10:21:43 +08:00
批量更新数据
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
<p>字符串轮转。给定两个字符串<code>s1</code>和<code>s2</code>,请编写代码检查<code>s2</code>是否为<code>s1</code>旋转而成(比如,<code>waterbottle</code>是<code>erbottlewat</code>旋转后的字符串)。</p>
|
||||
|
||||
<p><strong>示例1:</strong></p>
|
||||
<p><strong>示例 1:</strong></p>
|
||||
|
||||
<pre><strong> 输入</strong>:s1 = "waterbottle", s2 = "erbottlewat"
|
||||
<pre>
|
||||
<strong> 输入</strong>:s1 = "waterbottle", s2 = "erbottlewat"
|
||||
<strong> 输出</strong>:True
|
||||
</pre>
|
||||
|
||||
<p><strong>示例2:</strong></p>
|
||||
<p><strong>示例 2:</strong></p>
|
||||
|
||||
<pre><strong> 输入</strong>:s1 = "aa", s2 = "aba"
|
||||
<pre>
|
||||
<strong> 输入</strong>:s1 = "aa", s2 = "aba"
|
||||
<strong> 输出</strong>:False
|
||||
</pre>
|
||||
|
||||
|
Reference in New Issue
Block a user