<qiyuangong>229_Majority_Element_II_2.py
def majorityElement( nums):
    count_hash = {}
    res = []
    for i in nums:
        try:
            count_hash[i] += 1
        except KeyError:
            count_hash[i] = 1
    for k, v in count_hash.iteritems():
        if v > len(nums) / 3:
            res.append(k)
    return res
def sample_funcname ( var_0 ) :
    var_1 = { }
    var_2 = [ ]
    for var_3 in var_0 :
        try :
            var_1 [ var_3 ] += 1
        except KeyError :
            var_1 [ var_3 ] = 1
    for var_7 , var_8 in var_1.iteritems ( ) :
        if var_8 > len ( var_0 ) / 3 :
            var_2.append ( var_7 )
    return var_2
