The naive solution uses the + operator, which is explicitly forbidden.
Subtraction, multiplication by 1, and other arithmetic tricks still implicitly use addition hardware.
Can you simulate addition using only bitwise operations?
The trap
The naive solution uses the + operator, which is explicitly forbidden.
Subtraction, multiplication by 1, and other arithmetic tricks still implicitly use addition hardware.
Can you simulate addition using only bitwise operations?