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)
Hello everyone,
I’m in trouble here, I have all the IDE tests and all validators too except the validator 4.
The issue, I have no clue which is specific to this validator…
I don’t see contribution so no clue about the issue.
Would anyone now if there is something specific to validator 4 ?
Thank you
It’s a very old puzzle and there is no access to the validators. Only the author knows what the validator is.
If you want, you may send me your code via private message and I’ll take a look.
Thank you, I finally found out. It was something related to the way I redraft the next vote in a voter list. Iwas stopping the update to one shift but sometime it needs more to get a candidate not yet eliminated.
It seems that only that validator checks that point.
May this could help anyone coming here with the same failing validator…