DEV Community

Mujahida Joynab
Mujahida Joynab

Posted on

Priority Queue

Maintains a priority

Max Priority Queue -> Max value will come at first
Min Priority Queue -> Min value will come at first

TC -
Insertion - O(lon n)
Deletion - O( log n)

Top comments (0)