Find Second Largest Element In An Array
Find Second Largest Element In An Array . Enter the array element 1: 2 elements with the second smallest value (3) at indices: Program to find the second smallest element in an array FACE Prep from www.faceprep.in Initialize max as first element, then traverse array from second and compare every element with current max. To find second largest element, first find the largest element. On the other hand it would be also a matter of interpretation what we would consider the 2nd largest element.