AlgoMaster Logo

Sum of Two Integers

a=1,b=2
0 / 6
76543210a= 1b= 20000000100000010
algomaster.io
Step:Add 1 + 2 without the + operator: XOR adds each column without carry, AND shifted left is the carry. Repeat until the carry dies out