Last updated 1 year ago
Appraoch: GCD (a,b) = GCd(a-b, b) = Gcd(a%b, b) where a>b The moment we get one of zero we return other Time Comp = O(logbase(phi){min(a,b)})