Skip to content

Instantly share code, notes, and snippets.

@Makster20
Makster20 / runoff.c
Created September 20, 2023 11:11
My solution for runoff.c Even though it took 3 days i think i did well on this. Can you guys tell me how good is my style and if my code is clean? Thank you!!
#include "cs50.h"
#include <stdio.h>
#include <string.h>
// Max voters and candidates
#define MAX_VOTERS 100
#define MAX_CANDIDATES 9
// preferences[i][j] is jth preference for voter i
int preferences[MAX_VOTERS][MAX_CANDIDATES];