import collections


def most_frequent(lst: list):
    """
    找到列表中出现次数最多的元素
    :param lst:
    :return:
    """
    # return max(set(List), key = List.count) # 耗时 O(n^2)
    return collections.Counter(lst).most_common(1)[0][0]