GoLang Solution For UVa Online Judge: 10142 - Australian Voting
GO Solution For UVa 10142 - Australian Voting. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.
Problem Description
Australian ballots require that the voter rank the candidates in order of choice. Initially only the first choices are counted and if one candidate receives more than 50% of the vote, that candidate is elected. If no candidate receives more than 50%, all candidates tied for the lowest number of vote
...You can find the full details of the problem Australian Voting at UVa Online Judge
Sample Input
1 3 John Doe Jane Smith Sirhan Sirhan 1 2 3 2 1 3 2 3 1 1 2 3 3 1 2
Sample Output
John Doe
Solution: Please check the main.go snippet for the solution.
Solution originally posted at: Github by @codingsince1985
Comments
Leave a comment
You are not LoggedIn but you can comment as an anonymous user which requires manual approval. For better experience please Login.