From 2283149f9995c02124ab12c30bb52bf2dfba1afb Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Mon, 19 Feb 2024 20:33:52 +0000 Subject: Mon, Feb 19, 2024, 12:33 PM -08:00 --- wk3/pset/runoff/runoff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wk3') diff --git a/wk3/pset/runoff/runoff.c b/wk3/pset/runoff/runoff.c index 4daa519..5ed853e 100644 --- a/wk3/pset/runoff/runoff.c +++ b/wk3/pset/runoff/runoff.c @@ -171,7 +171,7 @@ bool print_winner(void) { winners[j] = -1; } - // + // goes through every candidate, looks at votes, eliminates the least voted for (int i = 1; i < candidate_count; i++) { if (candidates[winners[0]].votes < candidates[i].votes) // if the new candidate has more votes than previous -- cgit v1.2.3