# Majority Element Boyer Moore **Idea.** Cancel votes; the survivor is majority when it exists. ```python pass # sketch ``` **Interview tip.** Name the invariant and complexity first, then dry-run a tiny example. *Disclosure: practice note shared by the Linkjob AI team.* For live mock-interview practice see [the Linkjob AI app](https://www.linkjob.ai/).