Skip to content

Commit 5b32a92

Browse files
authored
Merge pull request #1547 from 100daysummer/patch-2
Update extended-euclid-algorithm.md
2 parents dfbbe2b + 45e4645 commit 5b32a92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/algebra/extended-euclid-algorithm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ int gcd(int a, int b, int& x, int& y) {
9393
}
9494
```
9595

96-
If you look closely at the variables `a1` and `b1`, you can notice that they take exactly the same values as in the iterative version of the normal [Euclidean algorithm](euclid-algorithm.md). So the algorithm will at least compute the correct GCD.
96+
If you look closely at the variables `a1` and `b1`, you can notice that they take exactly the same values as in the iterative version of the normal [Euclidean algorithm](euclid-algorithm.md#implementation). So the algorithm will at least compute the correct GCD.
9797

9898
To see why the algorithm computes the correct coefficients, consider that the following invariants hold at any given time (before the while loop begins and at the end of each iteration):
9999

0 commit comments

Comments
 (0)