This commit is contained in:
Rohit Tanwar
2018-01-09 11:29:02 +05:30
parent defe3913e0
commit ad813a5af6
2 changed files with 5 additions and 4 deletions

View File

@ -3,7 +3,7 @@
Returns the least common multiple of two or more numbers.
Use the `greatest common divisor (GCD)` formula and the fact that `lcm(x,y) = x * y / gcd(x,y)` to determine the least common multiple. The GCD formula uses recursion.
k
Uses `reduce` function from the inbuilt module `functools`. Also defines a method `spread` for javascript like spreading of lists.
```python