Skip to content

Commit 353dc7b

Browse files
fix build
1 parent ec87dec commit 353dc7b

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/main/java/com/fishercoder/solutions/_1071.java

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,6 @@ private boolean isDivisor(String str2, int length) {
6262
return true;
6363
}
6464

65-
private int nextPossibleLength(String str2, int bound) {
66-
if (bound <= 0) {
67-
return -1;
68-
}
69-
int len = bound;
70-
while (str2.length() % len != 0) {
71-
len--;
72-
}
73-
return len;
74-
}
75-
7665
private boolean isDivisor(String str1, String commomDivisor) {
7766
if (str1.length() == commomDivisor.length()) {
7867
return str1.equals(commomDivisor);
@@ -86,5 +75,15 @@ private boolean isDivisor(String str1, String commomDivisor) {
8675
return i == (str1.length() - commomDivisor.length());
8776
}
8877

78+
private int nextPossibleLength(String str2, int bound) {
79+
if (bound <= 0) {
80+
return -1;
81+
}
82+
int len = bound;
83+
while (str2.length() % len != 0) {
84+
len--;
85+
}
86+
return len;
87+
}
8988
}
9089
}

0 commit comments

Comments
 (0)