Skip to content

Instantly share code, notes, and snippets.

@dongho-jung
Created April 27, 2020 15:22
Show Gist options
  • Save dongho-jung/ef5b3ae964e5f094a966ca0b844a0d7a to your computer and use it in GitHub Desktop.
Save dongho-jung/ef5b3ae964e5f094a966ca0b844a0d7a to your computer and use it in GitHub Desktop.
GCD algorithm using Euclid Algorithm
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