Advertising
advertising
related pastes to tag 'euclid'
- 1242495 - (Extended) Euclidean Algorithm I: java gcd euclid
-
- /**
- * Euclidean algorithm to find the greatest common divisor (gcd)
- * @param a
- * @param b
- * @return
- */
- public static int gcd(int a, int b){
- if(b == 0) return a;
- 1242489 - (Extended) Euclidean Algorithm: java gcd euclid
-
- /**
- * Euclidean algorithm to find the greatest common divisor (gcd)
- * @param a
- * @param b
- * @return
- */
- public static int gcd(int a, int b){
- if(b == 0) return a;