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