Kth Largest Element in an Array

Given an integer array nums and an integer k, return the kth largest element in the array.

The kth largest element is determined by its position in sorted order; it is not the kth disti...

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: