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 3ce1ae0 commit 9b283b8Copy full SHA for 9b283b8
solution/0459.Repeated Substring Pattern/Solution.java
@@ -0,0 +1,6 @@
1
+class Solution {
2
+ public boolean repeatedSubstringPattern(String s) {
3
+ String str = s + s;
4
+ return str.substring(1, str.length() - 1).contains(s);
5
+ }
6
+}
0 commit comments