215. Kth Largest Element in an Array
Problem Statement
Input: nums = [3,2,1,5,6,4], k = 2
Output: 5Input: nums = [3,2,3,1,2,4,5,5,6], k = 4
Output: 4Intuition
Links
Video Links
Approach 1:
Approach 2:
Approach 3:
Approach 4:
Similar Problems
Last updated