negative-input-causes-nontermination

Status: OUT

`hamming_weight` has no guard against negative inputs; on Python's arbitrary-precision integers, `n &= n - 1` on a negative value never reaches zero, causing an infinite loop

Source: entries/2026/06/06/number-of-1-bits-solution.md

Depended on by

JSON