{"id":"complement-pure-bitwise","text":"`find_complement` uses only `bit_length()`, bit shift, and XOR — no `bin()` string conversion or iteration — achieving O(1) time and space.","truth_value":"IN","source":"entries/2026/06/06/number-complement-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"complement-pure-bitwise","truth_value":"IN","reason":"premise"}]}}