You are viewing a single comment's thread. Return to all comments →
what is the problem with my solution?
n=int(input()) ar=[int(x) for x in input().split()] countList=[] for i in ar: countList.append(ar.count(i)) max_c=max(countList) i=0 result=[] while i<len(countList): if countList[i]==max_c: result.append(ar[i]) i+=1 print(min(result))
Seems like cookies are disabled on this browser, please enable them to open this website
Migratory Birds
You are viewing a single comment's thread. Return to all comments →
what is the problem with my solution?