<garvit244>997_1.py
def findJudge( N, trust):
    if not trust:
        return 1
    mapping = {}
    unique = set()
    for truste_list in trust:
        unique.add(truste_list[0])
        if truste_list[1] in mapping:
            mapping[truste_list[1]] += 1
        else:
            mapping[truste_list[1]] = 1
        
    unique_set = len(unique)
    for key, value in mapping.items():
        if value == unique_set:
            return key
    return -1
def sample_funcname ( var_0 , var_1 ) :
    if not var_1 :
        return 1
    var_3 = { }
    var_5 = set ( )
    for var_6 in var_1 :
        var_5.add ( var_6 [ 0 ] )
        if var_6 [ 1 ] in var_3 :
            var_3 [ var_6 [ 1 ] ] += 1
        else :
            var_3 [ var_6 [ 1 ] ] = 1
    var_10 = len ( var_5 )
    for var_12 , var_13 in var_3.items ( ) :
        if var_13 == var_10 :
            return var_12
    return - 1
