This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingExplain and verify how negative numbers are stored with flip-and-add-one.
What this asks
Explain and verify how a negative number is stored in two's complement.
The highest cell weighs -2^(w-1); to negate, flip every bit and add one in the same width, then decode the result and check it is the opposite value.
Try the matching visualizer modeThe full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing