Skip to content

Commit d9d93ed

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 8380623 commit d9d93ed

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

maths/gcd.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
def gcd(a: int, b: int) -> int:
22
"""
3-
Compute the Greatest Common Divisor (GCD) of two integers using
4-
the Euclidean algorithm.
3+
Compute the Greatest Common Divisor (GCD) of two integers using
4+
the Euclidean algorithm.
55
6-
The GCD is the largest positive integer that divides both numbers
7-
without leaving a remainder.
6+
The GCD is the largest positive integer that divides both numbers
7+
without leaving a remainder.
88
9-
>>> gcd(48, 18)
9+
>>> gcd(48, 18)
10+
6
11+
>>> gcd(7, 5)
12+
1
13+
>>> gcd(48, 18)
1014
6
1115
>>> gcd(7, 5)
1216
1
13-
>>> gcd(48, 18)
14-
6
15-
>>> gcd(7, 5)
16-
1
1717
18-
:param a: first integer
19-
:param b: second integer
20-
:return: greatest common divisor of a and b
18+
:param a: first integer
19+
:param b: second integer
20+
:return: greatest common divisor of a and b
2121
"""

0 commit comments

Comments
 (0)