GDSC-MITS / Contribute-To-HacktoberFest

Link Tree for all our socials
https://linktr.ee/gdscmits
14 stars 41 forks source link

To find the second largest element in an array #72

Closed Gops229 closed 1 year ago

Gops229 commented 1 year ago

I would like to add this to the java programs. It returns the second largest element from the given array of integers without sorting them so that the numbers may remain in their respective positions. This one's quite simple but quirky without the usual sorting procedure. Hope you find it interesting. Thank You!