Sum of Two Integers Without + or -

Medium · Bit Manipulation · about 20 minutes

Asked at Meta, Apple, Microsoft.

Given two integers a and b (each between −1000 and 1000), return their sum without using the + or - operators.