class Solution:
def findKthLargest(self, nums: List[int], k: int) -> int:
return sorted(nums, reverse=True)[k-1]
import heapq
class Solution:
def findKthLargest(self, nums: List[int], k: int) -> int:
_nums = nums[:]
heapq.heapify(_nums)
return heapq.nlargest(k, _nums)[-1]