方法一:排序: class Solution: def findKth(self , a: List[int], n: int, K: int) -> int: a = sorted(a, reverse=True) return a[K-1] 方法二:小顶堆+相反数: import heapq class Solution: def findKth(self , a: List[int], n: int, K: int) -> int: heap = [] for i in ra...