aboutsummaryrefslogtreecommitdiff
path: root/challenge-289/eric-cheung/python/ch-1.py
blob: c54d1cff0ac93e1ca7e08e2d9a970c2ce1db9f29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
## arrInt = [5, 6, 4, 1]  ## Example 1
## arrInt = [4, 5]  ## Example 2
arrInt = [1, 2, 2, 3]  ## Example 3

arrOutput = sorted(set(arrInt), reverse = True)

## print (arrOutput)

if len(arrOutput) >= 3:
    print (arrOutput[2])
else:
    print (arrOutput[0])