Kth Largest Element in an Array at eBay
Medium68.8% acceptance
This problem has 50.0% frequency at eBay.
Problem Description
Given an integer array `nums` and an integer `k`, return _the_ `kth` _largest element in the array_. Note that it is the `kth` largest element in the sorted order, not the `kth` distinct element. Can you solve it without sorting?
Read full problem and hintsTopics
Also asked at 44 companies
More eBay Questions
Remove One Element to Make the Array Strictly IncreasingEasyPartition Equal Subset SumMediumMinimize Maximum Pair Sum in ArrayMediumSpiral MatrixMediumTwo SumEasy
View all eBay questions