Domanda di colloquio di X

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

Risposta di colloquio

Anonimo

3 ago 2017

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