Solve 71 in Python.
This commit is contained in:
@@ -195,6 +195,7 @@ def permutations(iterable):
|
||||
yield elem + ps
|
||||
|
||||
|
||||
@lru_cache(maxsize=1000000)
|
||||
def gcd(a, b):
|
||||
while a % b != 0:
|
||||
a, b = b, a % b
|
||||
|
||||
Reference in New Issue
Block a user