ll fact(ll n) { if(n==0) return 1; ll res = 1; for (ll i = 2; i <= n; i++) res = res * i; return res; } ll nPr(ll n, ll r) { return fact(n) / fact(n - r); } ll nCr(ll ...
🔹 Greatest Common Divisor (GCD) The Greatest Common Divisor (GCD) of two numbers is the largest number that divides both of them without leaving a remainder. • Also called Highest Common Factor (HCF) ...