3 lines
68 B
JavaScript
3 lines
68 B
JavaScript
const gcd = (a, b) => !b ? a : gcd(b, a % b);
|
|
module.exports = gcd;
|
const gcd = (a, b) => !b ? a : gcd(b, a % b);
|
|
module.exports = gcd;
|