Questions tagged [lock]
The lock tag has no usage guidance.
4
questions
0
votes
0answers
27 views
CS50 Tideman lock_pairs function
I am now in tideman and every function seems to work fine but I've been stuck on lock_pairs. I have come up with this solution and when I try to simulate an election it seems to run fine and produces ...
0
votes
0answers
20 views
Tideman: linking pairs to candidates
and thanks for helping. I am confused with Tideman, and would love some enlightenment:
I successfully sorted pairs, and can't figure out, in order to fill the bool locked, how to link the candidates ...
0
votes
1answer
352 views
Pset 3 Tideman lock pairs function
Help, i'm losing my mind. I'm not sure where i'm going wrong in this function, it gives me an error on every line of check50 after sort pairs. Can anybody shed any light? Thank you in advance! J
// ...
0
votes
0answers
2k views
Locking pairs in the Tideman problem
I've been going through the CS50x course. It was doable so far but now I'm just stuck on the Tideman problem from p-set 3.
Tideman is a voting method that picks the Condorcet winner of an election, i....