Skip to content

Instantly share code, notes, and snippets.

View maddox05's full-sized avatar

Maddox Schmidlkofer maddox05

View GitHub Profile
@maddox05
maddox05 / tideman.c
Created August 26, 2023 16:38
Tideman Completion
#include <cs50.h>
#include <stdio.h>
#include <string.h>
// Max number of candidates
#define MAX 9
// preferences[i][j] is number of voters who prefer i over j
int preferences[MAX][MAX];