If a candidate or party is slightly ahead in a bare majority of electoral divisions but a long way behind in others, they can win even if a competitor
gets more votes overall — as happened most notoriously in recent history in the US presidential election of 2000, when George W. Bush
narrowly defeated Al Gore.