Question: C programming seashell Write a function int kth largest(int a11,int len, int k) which returns the k-th largest number in an int array of length
Write a function int kth largest(int a11,int len, int k) which returns the k-th largest number in an int array of length lea with distinct elements (i.e, no duplicates). For example if a is 14,2.6,12,8,7.141 and k-3, the 3'rd largest number in this array is 8. If the k'th largest number does not exist, the function must return INT MIN Tou must find the k-th largest sumber without sorting/eutating the array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
