Time complexity
topmax/topmin O(1)
push O(logn)
Pop O(logn)
Remove (Java)
Priority Queue: O(n) (traverse O(n) + swap O(1) + sift up/down O(logn))
Hash Heap: O(logn) (traverse O(1) + swap O(1) + sift up/down O(logn))
Time complexity
topmax/topmin O(1)
push O(logn)
Pop O(logn)
Remove (Java)
Priority Queue: O(n) (traverse O(n) + swap O(1) + sift up/down O(logn))
Hash Heap: O(logn) (traverse O(1) + swap O(1) + sift up/down O(logn))