Open pwstrick opened 4 years ago
371. 两整数之和
/** * @param {number} a * @param {number} b * @return {number} */ var getSum = function(a, b) { let sum; while(b != 0) { sum = a ^ b; b = (a & b) << 1; a = sum; } return a; };
371. 两整数之和