Skip to content

Commit eb2f9b6

Browse files
committed
Time: 0 ms (100.00%), Space: 41.1 MB (79.34%) - LeetHub
1 parent f604520 commit eb2f9b6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class Solution {
2+
public boolean rotateString(String A, String B) {
3+
return A.length() == B.length() && (A + A).contains(B);
4+
}
5+
}

0 commit comments

Comments
 (0)