371. Sum of Two Integers
Practice Sum of Two Integers for free on NudgeCode: Medium, Bit Manipulation pattern. Write it in Python or JavaScript, run the tests in your browser, and ask for a hint when you are stuck.
Return a + b without using the + or - operators. Use bitwise operations instead.
Example
a = 1, b = 2 -> 3
a = 2, b = -5 -> -3
Constraints
- -1000 <= a, b <= 1000