leetcode 百天解题 - day 73 - 面试题 01.09. 字符串轮转
题目名称
字符串轮转。给定两个字符串s1和s2,请编写代码检查s2是否为s1旋转而成(比如,waterbottle是erbottlewat旋转后的字符串)。
示例
输入:s1 = “waterbottle”, s2 = “erbottlewat”
输出:True
题解
略
答案
1 | /** |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment
DisqusValine