Array Sorting – Kth largest Element
Input Array: {7,1,2,12,4,5,6,15,8,9} Find the Kth largest element. Solution one: Algorithm: 1. Sort array 2. array[k] is the kth largest element First sort the array: There are many sorting techniques available. Most of the people use the bubble sort in…