【leetcode】面试题 17.01. 不用加号的加法

int add(int a, int b){
    long long temp;
    while(a){
        temp = a&b;
        b = a^b;
        a=temp*2;
    }
    return b;
}
原文地址:https://www.cnblogs.com/ganxiang/p/14073532.html