We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f604520 commit eb2f9b6Copy full SHA for eb2f9b6
0796-rotate-string/0796-rotate-string.java
@@ -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