Boyer–Moore majority vote: what does it solve and what’s the core idea? | LetsGit.IT