complement-zero-special-case

Status: IN

`bitwiseComplement(0)` returns 1 via an explicit early check because `int.bit_length()` returns 0 for zero, which would make the general XOR-mask formula produce `(1 << 0) - 1 = 0` instead of 1.

Source: entries/2026/06/06/complement-of-base-10-integer-solution.md

JSON