Cs50 Tideman Solution ((top)) -

if (locked[from][i] && can_reach(i, target)) return true;

This function is identical to the one in plurality. It should record the voter’s rank for each candidate. Cs50 Tideman Solution