how to implement the main queue functions Enque() and Deque() using two stacks S1 & S2?
You allowed only to call push () and pop() functions of the two stacks to implement Enque()and Deque() functions.
are you using standard library stacks, or a self-built stack?
Last edited on