Solution: Adding Two Negabinary Numbers
Explore how to add two numbers in negabinary format by processing their bits and carries correctly. Understand the unique carry rules for base -2 addition and implement a solution that outputs the sum in negabinary array form without leading zeros.
We'll cover the following...
We'll cover the following...
Statement
You are given two numbers represented in negabinary (base