PYTHON:
n=int(input());k=[]
l=list(map(int,input().split()))
for i in l:
if l.count(i)==i:k.append(i)
print(*sorted(set(k))) if len(k)!=0 else print(-1)
PYTHON:
n=int(input());k=[]
l=list(map(int,input().split()))
for i in l:
if l.count(i)==i:k.append(i)
print(*sorted(set(k))) if len(k)!=0 else print(-1)
Hi friends....
In this blog I'm going to give answer for daily test skillrack program, daily challenges and kick start programs and give some coding techniques.
It'll be helpful for u sure and make it usefull
Learn More →
0 Comments