Status: IN
The XOR-with-mask algorithm handles all valid inputs (1 to 2^31 - 1) without branching; edge cases like single-bit numbers (e.g., `1 ^ 1 = 0`) resolve correctly through the general formula.
Source: entries/2026/06/06/number-complement-solution.md
JSON