Freshworks interview question

Finding the kth largest element in an array

Interview Answers

Anonymous

22 Aug 2017

Heap

1

Anonymous

13 Dec 2017

sort the array in descending order.Array[k] of the sorted array gives the answer