readme-script
This commit is contained in:
@ -18,7 +18,7 @@ def spread(arg):
|
||||
def deep_flatten(arr):
|
||||
result = []
|
||||
result.extend(
|
||||
spread(list(map(lambda x: deep(x) if type(x) == list else x, arr))))
|
||||
spread(list(map(lambda x: deep_flatten(x) if type(x) == list else x, arr))))
|
||||
return result
|
||||
```
|
||||
|
||||
|
||||
@ -25,7 +25,7 @@ def lcm(*args):
|
||||
numbers.extend(spread(list(args)))
|
||||
|
||||
def _gcd(x, y):
|
||||
return x if not y else gcd(y, x % y)
|
||||
return x if not y else _gcd(y, x % y)
|
||||
|
||||
def _lcm(x, y):
|
||||
return x * y / _gcd(x, y)
|
||||
|
||||
Reference in New Issue
Block a user