Find the Runner-Up Score!
January 16, 2024
5
2 3 6 6 55if __name__ == '__main__':
n = int(input())
arr = map(int, input().split())
# Remove duplicates by converting the array to a set
unique = set(arr)
# Sort the unique numbers in descending order
sorted_numbers = sorted(unique, reverse=True)
second_largest_unique = sorted_numbers[1]
print(second_largest_unique)Last updated