MCPcopy Create free account
hub / github.com/ShahjalalShohag/code-library / gcd

Method gcd

Miscellaneous/BigInt.cpp:457–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455 return a.empty() || (a.size() == 1 && !a[0]);
456 }
457 friend BigInt gcd(const BigInt &a, const BigInt &b) {
458 return b.zero() ? a : gcd(b, a % b);
459 }
460};
461BigInt power(BigInt a, ll k) {
462 BigInt ans = 1;

Callers

nothing calls this directly

Calls 2

zeroMethod · 0.80
gcdFunction · 0.50

Tested by

no test coverage detected