Skip to main content
1 vote
Accepted

PSET 3 runoff is_tie function

According to the spec: The function should return true if every candidate remaining in the election has the same number of votes, and should return false otherwise. I interpret the name of the ...
DinoCoderSaurus's user avatar
1 vote
Accepted

Pset3 Runoff is_tie

This for (int j =0; j < candidate_count; j++) only ever tests the 1st candidate, because it returns from the if/else block. (And it doesn't care whether candidate has been eliminated!). This ...
DinoCoderSaurus's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible