Horje
extended euclidean python Code Example
extended euclidean python
def extendEuclidean(a, b, s1=1, s2=0, t1=0, t2=1):
    
    if b:
        r=a%b
        return extendEuclidean(b, r, s2, s1-s2*(a//b), t2, t1-t2*(a//b))
    
    return a, s1, t1




Python

Related
show full pd dataframe Code Example show full pd dataframe Code Example
python read file to variable Code Example python read file to variable Code Example
how to simulate a key press in python Code Example how to simulate a key press in python Code Example
hide root window tkinter Code Example hide root window tkinter Code Example
python iterate directory Code Example python iterate directory Code Example

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