Cs50 Tideman Solution
: After all non-cyclical pairs are locked, the program scans the The "Source" : The winner is the candidate who is the
To detect a cycle, use a recursive function (often called has_cycle). This function should: Take a starting candidate and a target candidate. Check if the target is already locked to the starter. Cs50 Tideman Solution