1var canMeasureWater = function (jug1Capacity, jug2Capacity, targetCapacity) {2 const gcd = (x, y) => (y === 0 ? x : gcd(y, x % y));34 return (5 jug1Capacity + jug2Capacity >= targetCapacity &&6 targetCapacity % gcd(jug1Capacity, jug2Capacity) === 07 );8};
WPM •0 •0
ACC •0 •0
TIME •0