-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: preemptively fix potential issue with infinite loop
in cases where the number of remaining candidates is lower than the number of vacancies, it is possible that the program gets into an infinite loop
- Loading branch information
1 parent
e5fee7a
commit 5cbcd8a
Showing
2 changed files
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Enter the number of vacancies: Enter the number of votes: Enter the number of candidates: Enter the names of the candidates (space-separated): Enter the ballots (space-/line-separated): | ||
|
||
Elected candidates: JoseBishop AntonyMorrow JadenWall VanessaPacheco | ||
Elected candidates: JoseBishop JadenWall AntonyMorrow VanessaPacheco |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters