Synced the directory structure to that of Python repo

This commit is contained in:
Varun Upadhyay
2017-10-13 06:57:26 -07:00
parent 7dd8fd16cc
commit e53249ba23
25 changed files with 0 additions and 0 deletions

15
Others/GCD.java Normal file
View File

@ -0,0 +1,15 @@
//Oskar Enmalm 3/10/17
//This is Euclid's algorithm which is used to find the greatest common denominator
public class GCD{
public static int gcd(int a, int b) {
int r = a % b;
while (r != 0) {
b = r;
r = b % r;
}
return b;
}
}