Skip to content

Commit 247475f

Browse files
Refactor diophantine_equation.py for clarity
1 parent e2a78d4 commit 247475f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

blockchain/diophantine_equation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
from __future__ import annotations
2-
32
from maths.greatest_common_divisor import greatest_common_divisor
43

5-
64
def diophantine(a: int, b: int, c: int) -> tuple[float, float]:
75
"""
86
Diophantine Equation : Given integers a,b,c ( at least one of a and b != 0), the
@@ -99,6 +97,7 @@ def extended_gcd(a: int, b: int) -> tuple[int, int, int]:
9997

10098
return (d, x, y)
10199

100+
# This is very efficient
102101

103102
if __name__ == "__main__":
104103
from doctest import testmod

0 commit comments

Comments
 (0)