In this method two different priority queues for min and max are shown . The same elements in both the PQs are maintained with the help of correspondence pointers .
In this method two different priority queues for min and max are maintained . The same elements in both the PQs are shown with the help of correspondence pointers .