algorithms.tutorialhorizon.com
Find third largest element in a given array | Algorithms
Objective: Given an array of integers, write an algorithm to find the third largest element in the array. Example: Int [] a = { 6, 8, 1, 9, 2, 1, 10}; Output: Third largest element - 8 Int [] a = { 6, 8, 1, 9, 2, 1, 10, 10}; Output: Third largest element - 9 Int [] a = {6}; Output: Invalid Input, array size is less than 3