Exercises/#87 Sum of Two Integers Without +/-
#87

Sum of Two Integers Without +/-

Medium⚡ Bit Manipulation
80 XP

Problem

Calculate the sum of two integers a and b without using the operators + and -.

Examples

Input: a=1, b=2
Output: 3

Input: a=2, b=3
Output: 5
bit-manipulationxor
AI Assistant— powered by AI

Unlock hints progressively — start gentle, go deeper only if needed.

💡

Level 1: Gentle Nudge

A subtle direction

🗺️

Level 2: Approach

The algorithm to use

🔍

Level 3: Detailed

Step-by-step guidance

87 / 150

Your Solution

⚡ JavaScript

to save progress and use AI features