one python solution with bit manipulation
\ndef getSum(self, a, b):\n\twhile b:\n\t\ttmp = a ^ b\n\t\tb = (a & b) << 1\n\t\ta = tmp & 0xffffffff\n\treturn a if a >> 31 == 0 else ~(a ^ 0xffffffff)\n
```\ndef getSum(self, a, b):\n\twhile b:\n\t\ttmp = a ^ b\n\t\tb = (a & b) << 1\n\t\ta = tmp & 0xffffffff\n\treturn a if a >> 31 == 0 else ~(a ^ 0xffffffff)\n```
['Bit Manipulation', 'Python']