Question: Given an integer array nums and an integer k , return the k t h largest element in the array. Note that it is the
Given an integer array nums and an integer k return the
largest element in the array.
Note that it is the largest element in the sorted order, not
the distinct element.
Can you solve it without sorting?
Example :
Input: nums
Output:
Example :
Input: nums
Output:
Constraints:
nums. length
nums i
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
