← 返回 meta 的题目列表Find Kth Largest Number in Array
类型:online_judge
Given an array, find the Kth largest element. Use an efficient algorithm and an appropriate data structure to achieve this, taking complexity into account.
Example
Input
nums = [3, 2, 1, 5, 6, 4], k = 2