s4553711
11/20/2017 - 3:06 PM

371.cpp

class Solution {
public:
    int getSum(int a, int b) {
        int result = a ^ b;
        int carry = (a & b) << 1;
        if (carry != 0) return getSum(result, carry);
        return result;
    }
};