Give a procedure that uses a stack in order to reverse the elements of a circular queue which is stored in an array.
Answers
Answered by
1
Answer:
The purpose of moving all the elements present in the first stack to the second stack is to reverse the order of the elements, because of which the first element inserted into the queue, is positioned at the top of the second stack, and all we have to do is call the pop() function on the second stack to remove the ...
hope you get it...
Similar questions