File tree Expand file tree Collapse file tree 4 files changed +0
-173
lines changed
main/java/com/github/underscore
test/java/com/github/underscore Expand file tree Collapse file tree 4 files changed +0
-173
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 () {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments