empty-input-returns-zero-majority

Status: IN

`majority_element([])` returns `0` without raising, because the loop never executes and `candidate` retains its initial value of `0`.

Source: entries/2026/06/06/majority-element-solution.md

Depended on by

JSON