Coding Games and Programming Challenges to Code Better
Send your feedback or ask for help here!
Coding Games and Programming Challenges to Code Better
Send your feedback or ask for help here!
Your program implement the alternative vote electoral system.
should be
Your program must implement the alternative vote electoral system.
When a candidate is eliminated, the voters that has voted for this candidate will then vote for the next candidate in their preference list that is still in the election.
It is actually all voters, not voters who voted for that candidate only
Last line: ‘winner’ followed by the name of the winner.
should be ‘winner:’ … (Note the colon)
Constraints should have mentioned that for V
next lines, it will only consist of all numbers from 1 up to C
(whereby 1 represents the first candidate in the given input whilst C
represents the last)