3. (10%) Design an algorithm, reverse Queue, that takes as a parameter a queue object and uses a stack object to reverse
Posted: Tue Apr 12, 2022 10:19 am
3. (10%) Design an algorithm, reverse Queue, that takes as a parameter a queue object and uses a stack object to reverse the elements of the queue. The operations on queue and stack should strictly follow the ADT 3.2 Queue ADT and ADT 3.1 Stack ADT.