Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 194 Bytes

File metadata and controls

10 lines (7 loc) · 194 Bytes

Given an array with all distinct elements, find the largest three elements.

Input  : 10 , 4 , 3 , 50 , 23 , 90
Output : 90 , 50 , 23

Input  : 1 , 6 , 2 , 8 , 3

Output : 8 , 6 , 3