Find the K-th Largest Element in an Array
Problem: K-th Largest Element in an Array
Given an integer array nums and an integer k, return the value of the k-th largest element in the array.
- “k-th largest” means the element at po...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
