I have a array like {12,13,24,45,65,27,37,43,41,50,75,68}. Write a method or logic to get 3rd largest value in the array in only Single Loop is use without using sort.
Jitendra Kumar
Select an image from your device to upload
int[] array= new int[]{12,13,24,45,65,27,37,43,41,50,75,68}; var item = array.OrderByDescending(x=>x).Skip(2).Take(1).ToList(); foreach(int it in item) Console.WriteLine(it);