Determine who is trusted by everyone and trusts no one in a town.
Constraints
Example
>>> find_judge(2, [[1,2]]) 2 >>> find_judge(3, [[1,3],[2,3]]) 3 >>> find_judge(3, [[1,3],[2,3],[3,1]]) -1 >>> find_judge(1, []) 1
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints