Second height number

mail@pastecode.io avatar
unknown
plain_text
2 years ago
223 B
2
Indexable
Never
arr0 = [5, 2, 7, 3, 1]


Question : Find the second heighest number in given array.


Test Cases
arr1 = [23, 4, 56, 76, 75, 23]
arr2 = [19, 11, 32, 45, 45, 12]

----------------
Example = [23, 2, 12, 56, 34, 10]
Anwser = 34