boyer-moore-constant-space

Status: IN

The Boyer-Moore implementation uses exactly two scalar variables (`candidate`, `count`) — O(1) auxiliary space regardless of input size.

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

JSON