My issue
I am getting time limit extended error for two test cases.
My code
# cook your dish here
T=int(input())
for _ in range(T):
N=int(input())
A=list(map(int,input().split()))
max_count=0
entries_lst=[]
for entry in A:
if entry not in entries_lst:
entries_lst.append(entry)
if len(entries_lst)>max_count:
max_count=len(entries_lst)
else:
entries_lst.remove(entry)
print(max_count)
Problem Link: CARDSWIPE Problem - CodeChef