Heaps are a funny thing. We say they are priority queues, we visualize them as binary trees, and we implement them with arrays!
Heaps are a funny thing. We say they are priority queues, we visualize them as binary trees, and we implement them with arrays!