File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
src/main/java/com/fishercoder/solutions Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change 1
1
package com .fishercoder .solutions ;
2
2
3
- /**
4
- * 459. Repeated Substring Pattern
5
- * Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substring together.
6
- * You may assume the given string consists of lowercase English letters only and its length will not exceed 10000.
7
-
8
- Example 1:
9
- Input: "abab"
10
-
11
- Output: True
12
-
13
- Explanation: It's the substring "ab" twice.
14
- Example 2:
15
- Input: "aba"
16
-
17
- Output: False
18
- Example 3:
19
- Input: "abcabcabcabc"
20
-
21
- Output: True
22
-
23
- Explanation: It's the substring "abc" four times. (And the substring "abcabc" twice.)
24
- */
25
-
26
3
public class _459 {
27
4
28
5
public static class Solution1 {
You can’t perform that action at this time.
0 commit comments