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
History,
6 months ago
Biology,
6 months ago
Math,
6 months ago
Biology,
1 year ago
World Languages,
1 year ago