Which of the following pair of functions are required to implement the push functionality?

Assume the rear of a dequeue is same as the stack top. We are using a deque to implement a stack. The deque class has the following methods:

enqueue_front(key)- add key to the front

enqueue_rear(key)- add key to the rear

dequeue_front()- returns the value at front

dequeue_rear()- returns the value at rear

which of the following pair of functions are required to implement the push functionality?

× How can I help you?