{"id":"sort-by-bits-uses-string-popcount","text":"`sortByBits` computes popcount via `bin(x).count('1')` string counting rather than bitwise arithmetic (Kernighan's trick or lookup tables).","truth_value":"IN","source":"entries/2026/06/06/sort-integers-by-the-number-of-1-bits-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"sort-by-bits-uses-string-popcount","truth_value":"IN","reason":"premise"}]}}