Skip to content

371-sum-of-two-integers

DevGod
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);
};