Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

advertising

related pastes to tag 'euclid'

1242495 - (Extended) Euclidean Algorithm I: java gcd euclid
  1. /**
  2.          * Euclidean algorithm to find the greatest common divisor (gcd)
  3.          * @param a
  4.          * @param b
  5.          * @return
  6.          */
  7.         public static int gcd(int a, int b){
  8.                 if(b == 0) return a;
  9.  
1242489 - (Extended) Euclidean Algorithm: java gcd euclid
  1. /**
  2.          * Euclidean algorithm to find the greatest common divisor (gcd)
  3.          * @param a
  4.          * @param b
  5.          * @return
  6.          */
  7.         public static int gcd(int a, int b){
  8.                 if(b == 0) return a;
  9.  
fantasy-obligation
fantasy-obligation