Find first,second and third highest numbers in an array using java


Input:
7
1 2 3 4 5 6 7

Output:
7 6 5

Input:
7
29 79 17 8 4 9 97

Output:
97 79 29

Comments

Popular posts from this blog

Reasoning-Number Series

Reasoning-Letter Series

Profit and Loss