X Interview Question

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

Interview Answer

Anonymous

Aug 3, 2017

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