3 lines
66 B
TypeScript
3 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;
|