New answers tagged

1

This if (candidates[j].votes==candidate_count-i) may or may not be the winner. In an election with 3 candidates and 3 voters, a candidate can win with 3 votes. In an election with 5 candidates and 3 voters, a candidate with 3 votes will win. In the walkthrough, Brian says: Print the name of the candidates(s) who have the most votes. One must know what is &...


Top 50 recent answers are included