1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-10-18 11:36:48 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-03-29 12:43:11 +08:00
parent 58bbdfd57c
commit 2b0511d272
10721 changed files with 8123 additions and 8119 deletions

View File

@@ -0,0 +1,28 @@
<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>
<pre><strong> 输入</strong>s1 = &quot;waterbottle&quot;, s2 = &quot;erbottlewat&quot;
<strong> 输出</strong>True
</pre>
<p><strong>示例2:</strong></p>
<pre><strong> 输入</strong>s1 = &quot;aa&quot;, s2 = &quot;aba&quot;
<strong> 输出</strong>False
</pre>
<ol>
</ol>
<p><strong>提示:</strong></p>
<ol>
<li>字符串长度在[0, 100000]范围内。</li>
</ol>
<p><strong>说明:</strong></p>
<ol>
<li>你能只调用一次检查子串的方法吗?</li>
</ol>