题目

使用sort()

var findKthLargest = function(nums, k) {
  nums.sort((x,y)=>x-y);
  return nums[nums.length-k];
};