You are viewing a single comment's thread. Return to all comments →
Its working for negative numbers.check this
N=int(raw_input()) list=list(set(map(int,raw_input().strip().split(" ")))) list.sort(reverse=True) print list[1]
Find the Runner-Up Score!
You are viewing a single comment's thread. Return to all comments →
Its working for negative numbers.check this