Skip to content

Files

Latest commit

a8531bc · Jan 17, 2019

History

History

Find The Largest Three Elements in An Array

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 17, 2019
Jan 17, 2019
Jan 17, 2019

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