n = int(input()) number_list = [] for _ in range(n): dic = {} feature=(int(input())) number_list = list(map(int,input().split())) for key in number_list: dic[key] = dic.get(key,0)+1 count = 0 for key in dic: count = count +1 if dic[key]>feature/2: print("NO") break elif(count == len(dic)): print("YES")我怀疑腾讯要招的其实是算法工程师😥