Skip to content

Commit 9b283b8

Browse files
authored
Create Solution.java
1 parent 3ce1ae0 commit 9b283b8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)