Skip to content

Commit 3638b2f

Browse files
authored
Removed class Trie and methods U.gcd(), U.findGcd()
1 parent f8e18dc commit 3638b2f

File tree

4 files changed

+0
-173
lines changed

4 files changed

+0
-173
lines changed

src/main/java/com/github/underscore/Trie.java

Lines changed: 0 additions & 86 deletions
This file was deleted.

src/main/java/com/github/underscore/U.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3252,21 +3252,6 @@ private static Object makeDeepCopyMap(Object value) {
32523252
return result;
32533253
}
32543254

3255-
public static long gcd(long value1, long value2) {
3256-
if (value1 == 0) {
3257-
return value2;
3258-
}
3259-
return gcd(value2 % value1, value1);
3260-
}
3261-
3262-
public static long findGcd(long... array) {
3263-
long result = array[0];
3264-
for (int index = 1; index < array.length; index += 1) {
3265-
result = gcd(array[index], result);
3266-
}
3267-
return result;
3268-
}
3269-
32703255
public static Builder objectBuilder() {
32713256
return new U.Builder();
32723257
}

src/test/java/com/github/underscore/MathTest.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -475,14 +475,6 @@ void createPermutationWithRepetition() {
475475
resultChain.toString());
476476
}
477477

478-
@Test
479-
void gcd() {
480-
assertEquals(12, U.gcd(24, 36));
481-
assertEquals(5, U.gcd(5, 0));
482-
assertEquals(12, U.findGcd(24, 36));
483-
assertEquals(5, U.findGcd(5, 0));
484-
}
485-
486478
@SuppressWarnings("unchecked")
487479
@Test
488480
void main() {

src/test/java/com/github/underscore/TrieTest.java

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)