Skip to content

Instantly share code, notes, and snippets.

View MeisamMulla's full-sized avatar

Meisam Mulla MeisamMulla

  • Insight Technologies Ltd.
  • New York, NY
  • 21:36 (UTC -04:00)
View GitHub Profile
#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];