WalmartSoftware Engineer · Phone ScreenCodemia practiceImplement Priority Queue with in-place
Implement a priority queue that supports insertion and extraction of the highest priority element in O(log n) time, using in-place techniques. Your implementation should allow for the addition of elements with associated priorities and should be able to return and remove the element with the highest priority efficiently. Ensure that your solution handles edge cases, such as empty queues, appropriately.
Medium
Coding & Algorithms