employer cover photo
employer logo
employer logo

Someshwara Software

Is this your company?

Someshwara Software interview question

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?