Questions tagged [lock]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
61 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
1answer
436 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....