3 ms·
That would work but a heap isn't a totally ordered data structure so if we were to display the order book it may look weird with things slightly out of place. A
by zrail 13y ago
That would work but a heap isn't a totally ordered data structure so if we were to display the order book it may look weird with things slightly out of place. An RB tree guarantees the order.
- IceyEC 13y agoGotcha!