2 lines
66 B
TypeScript
2 lines
66 B
TypeScript
const gcd = (a, b) => !b ? a : gcd(b, a % b);
|
|
export default gcd;
|
const gcd = (a, b) => !b ? a : gcd(b, a % b);
|
|
export default gcd;
|