File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed
src/main/java/com/fishercoder/solutions Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -62,17 +62,6 @@ private boolean isDivisor(String str2, int length) {
62
62
return true ;
63
63
}
64
64
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
-
76
65
private boolean isDivisor (String str1 , String commomDivisor ) {
77
66
if (str1 .length () == commomDivisor .length ()) {
78
67
return str1 .equals (commomDivisor );
@@ -86,5 +75,15 @@ private boolean isDivisor(String str1, String commomDivisor) {
86
75
return i == (str1 .length () - commomDivisor .length ());
87
76
}
88
77
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
+ }
89
88
}
90
89
}
You can’t perform that action at this time.
0 commit comments