Pergunta de entrevista da empresa X

Show how to rank items in an array using linear space.

Resposta da entrevista

Sigiloso

3 de ago. de 2017

If the ranks are numbers you can use a min/max heap and then pop them off into an array