Binary Min/Max Heap Overview

preview_player
Показать описание
A Binary Min/Max Heap is essentially a priority queue. A priority queue prioritizes based on the key being inserted. In a Min Heap, the node with the smallest key, gets given priority, and is dequeued first. In a Max Heap, the node with the largest key, gets given priority and is dequeued first. Nodes that are inserted that have duplicate keys, get removed based on insertion, First in or First out(FIFO)
Рекомендации по теме
Комментарии
Автор

Nice work! Looking for the implementation. Would love to see a JavaScript version.

abeechr