Horje
Implementation of Extended Euclidian theorem Code Example
Implementation of Extended Euclidian theorem
int gcd(int a, int b, int& x, int& y) {
    if (b == 0) {
        x = 1;
        y = 0;
        return a;
    }
    int x1, y1;
    int d = gcd(b, a % b, x1, y1);
    x = y1;
    y = x1 - y1 * (a / b);
    return d;
}




Cpp

Related
c++ lettura file Code Example c++ lettura file Code Example
c++ pass char array by reference Code Example c++ pass char array by reference Code Example
stl function to reverse an array Code Example stl function to reverse an array Code Example
string.begin() c++ Code Example string.begin() c++ Code Example
convert letters to uppercase in c++ Code Example convert letters to uppercase in c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12