Created
April 27, 2020 15:22
-
-
Save dongho-jung/ef5b3ae964e5f094a966ca0b844a0d7a to your computer and use it in GitHub Desktop.
GCD algorithm using Euclid Algorithm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def gcd(a, b): | |
while b: a, b = b, a % b | |
return a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment