Course · Section 11: Working With Arrays · Lecture 172: Sorting Arrays
Implement `findKthLargest(nums, k)` returning the k-th largest element in `nums`.
+ 1 hidden test run on Submit.
Sorting descending and indexing k-1 is O(n log n); quickselect would be O(n) average.
Run your code to see results.