Status: IN
The XOR mask is exactly `n.bit_length()` bits wide (`(1 << n.bit_length()) - 1`), so only significant bits are flipped — no fixed 32-bit or 64-bit width assumption.
Source: entries/2026/06/06/complement-of-base-10-integer-solution.md
JSON