mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-02-19 06:10:36 +00:00
[PR #1238] feat: added extended Euclidean algorithm #1835
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/TheAlgorithms/C/pull/1238
State: closed
Merged: Yes
Description of Change
euclidean_algorithm_extended.c is implemented and lives in the math subdirectory.
In addition to finding the greatest common divisor of integers a and b, this algorithm will find values x and y such that
ax+by=gcd(a,b).Checklist
Notes: added extended Euclidean algorithm