Domanda di colloquio di Freshworks

Finding the kth largest element in an array

Risposte di colloquio

Anonimo

22 ago 2017

Heap

1

Anonimo

13 dic 2017

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