Search This Blog

Friday, 13 January 2017

Priority queue using heap

The code uses a max heap to remove the maximum element present in the data. Heap is used as it helps to perform the above operation in O(log n) time.
Link to code.

No comments:

Post a Comment