171. Sum of Two Integers

Add two integers a and b without using the + and - operators.
Example 1
Input: a = 1, b = 2
Output: 3
Explanation: 1 + 2 = 3 without the addition operator.
Example 2
Input: a = 2, b = 3
Output: 5
Explanation: 2 + 3 = 5.
bit manipulationeasy
JavaScript
Loading...
Line 1, Char 1