<qiyuangong>229_Majority_Element_II_1.py
def majorityElement( nums):
    ls = len(nums)
    res = []
    check_value = []
    for i in range(ls):
        if nums[i] in check_value:
            continue
        count = 1
        for j in range(i + 1, ls):
            if nums[i] == nums[j]:
                count += 1
        if count > ls / 3:
            res.append(nums[i])
        check_value.append(nums[i])
    return res
def sample_funcname ( var_0 ) :
    var_2 = len ( var_0 )
    var_3 = [ ]
    var_4 = [ ]
    for var_6 in range ( var_2 ) :
        if var_0 [ var_6 ] in var_4 :
            continue
        var_8 = 1
        for var_9 in range ( var_6 + 1 , var_2 ) :
            if var_0 [ var_6 ] == var_0 [ var_9 ] :
                var_8 += 1
        if var_8 > var_2 / 3 :
            var_3.append ( var_0 [ var_6 ] )
        var_4.append ( var_0 [ var_6 ] )
    return var_3
