Kth Largest Element in an Array
Try to solve the Kth Largest Element in an Array problem.
Statement
Find the largest element in an unsorted array.
Note: We need to find the largest element in the sorted order, not the distinct element.
Constraints:
-
k
nums.length
-
nums[i]