My issue
what’s wrong with my code
My code
# cook your dish here
t=int(input())
for i in range(t):
n=int(input())
l=list(map(int,input().split()))
for j in l:
if l.count(j)>1:
print('YES')
break
print('NO')
Learning course: Arrays, Strings & Sorting
Problem Link: Dominant Element Practice Problem in Arrays, Strings & Sorting - CodeChef