LC.面试题01.09[字符串轮转] 方法一:模拟12345class Solution { public boolean isFlipedString(String s1, String s2) { return s1.length() == s2.length() && (s1 + s1).contains(s2); }} 时间复杂度:$O(n)$ 空间复杂度:$O(n)$