题目链接
题目:
分析:
代码:
class Solution { public int getSum(int a, int b) { while(b != 0){ int x = a ^ b; int carry = (a & b) << 1; a = x; b = carry; } return a; }}
京公网安备 11010502049817号