Kth Largest number into an array [C#]

public class Solution {
public int FindKthLargest(int[] nums, int k) {
Array.Sort(nums);
int n = nums.Length;
return nums[n-k];
}
}

Comments (0)