Computer Science, asked by Harshita6665, 9 months ago

Suppose a stack implementation supports an instruction REVERSE, which reverses the order of elements on the stack, in addition to the PUSH and POP instructions. How do you implement ENQUEUE and DEQUEUE operations of queue using these instructions

Answers

Answered by amrishvineet1234
0

Answer:

Suppose a stack implementation supports an instruction REVERSE, which reverses the order of elements on the stack, in addition to the PUSH and POP instructions. ...

Similar questions