New answers tagged

1

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 function is_tie to mean all the non-eliminated candidates are tied, not is there a tie between any two candidates. The key word here is every. The hint says: Recall ...


0

else does not take an expression. else if does.


Top 50 recent answers are included