Bitwise Integer Sum
MATH
BIT MANIPULATION

Problem

Given an integer a and b, return their sum.

The function must perform this task without employing the conventional arithmetic operators + and -. Instead, use bitwise operations to accomplish the addition.

Examples

bitwiseSum(4, 6) // return 10 bitwiseSum(42, 2) // return 44
Loading...
Loading...
You don't have access to this question !
Loading...