Created
September 6, 2020 13:05
-
-
Save Sadamingh/4f4d79c02c9a082a6e3939c9c1d5d83d to your computer and use it in GitHub Desktop.
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 my_gcd(a: int, b: int) -> int: | |
while b: | |
a, b = b, a % b | |
return abs(a) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment