Sum of Two Integers

Try to solve the Sum of Two Integers problem.

Statement

Given two integers, a and b, return their sum without using the addition or subtraction operators.

Constraints:

  • −1000≤-1000\leq a, b ≤1000\leq 1000

Examples

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.