Kth Largest Element in an Array
Try to solve the Kth Largest Element in an Array problem.
We'll cover the following
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]
Examples
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy