371-sum-of-two-integers

DevGod
Vtuber
/** * @param {number} a * @param {number} b * @return {number} */var getSum = function(a, b) { return b == 0 ? a : getSum(a^b, (a&b)<<1);};
/** * @param {number} a * @param {number} b * @return {number} */var getSum = function(a, b) { return b == 0 ? a : getSum(a^b, (a&b)<<1);};