Question d’entretien chez X

Nothing unexpected

Réponse à la question d'entretien

Utilisateur anonyme

3 janv. 2014

Option 1: Using a Priority Queue (heap). Complexity O(n logk) Option 2: Using Selection algorithm (first finding kth largest element and then sorting the elements