Solution __link__ — Cs50 Tideman
Once all votes are cast, the add_pairs function iterates through the preferences matrix. For every pair of candidates $(i, j)$:
typedef struct
sort_pairs sorts pairs in : preferences[pair.winner][pair.loser] - preferences[pair.loser][pair.winner] Cs50 Tideman Solution
