<qiyuangong>229_Majority_Element_II_3.py
def majorityElement( nums):
    tmp = {}
    res = []
    for n in list(set(nums)):
        tmp[n] = nums.count(n)
    for k, v in tmp.iteritems():
        if v > len(nums) / 3:
            res.append(k)
    return res
def sample_funcname ( var_0 ) :
    var_1 = { }
    var_2 = [ ]
    for var_5 in list ( set ( var_0 ) ) :
        var_1 [ var_5 ] = var_0.count ( var_5 )
    for var_8 , var_9 in var_1.iteritems ( ) :
        if var_9 > len ( var_0 ) / 3 :
            var_2.append ( var_8 )
    return var_2
