Pregunta de entrevista de X

Nothing unexpected

Respuesta de la entrevista

Anónimo

3 de ene de 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