Assume that you are implementing a priority queue PQ that returns the max element on dequeue operation. If we use a max heap to implement the PQ, enqueue is O(______) operation, and dequeue is O(_____) operation
Could someone please answer/explain how you got it...I am thinking log n for both but not sure?