tideman.c
void record_preferences(int ranks[])
{
    for (int i = 0; i <= candidate_count - 2; i++)
    {
        for (int j = i + 1; j <= candidate_count - 1; j++)
        {
            preferences[ranks[i]][ranks[j]] += 1;
        }
    }
    return;
}
// Update preferences given one voter's ranks
Update preferences given one voter's ranks
Update preferences given one voter ' s ranks
void record_preferences(int ranks[])
{
    for (int i = 0; i <= candidate_count - 2; i++)
    {
        for (int j = i + 1; j <= candidate_count - 1; j++)
        {
            preferences[ranks[i]][ranks[j]] += 1;
        }
    }
    return;
}
void record_preferences ( int ranks [ ] ) { for ( int i = 0 ; i <= candidate_count - 2 ; i ++ ) { for ( int j = i + 1 ; j <= candidate_count - 1 ; j ++ ) { preferences [ ranks [ i ] ] [ ranks [ j ] ] += 1 ; } } return ; }
Update preferences given one voter's ranks
Update preferences given one voter ' s ranks